mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
CSerializer: fix any_cast
This commit is contained in:
@@ -103,7 +103,7 @@ public:
|
|||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>));
|
assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>));
|
||||||
#endif
|
#endif
|
||||||
VectorizedObjectInfo<T, U> *ret = std::any_cast<VectorizedObjectInfo<T, U>*>(i->second);
|
auto *ret = std::any_cast<VectorizedObjectInfo<T, U>>(&i->second);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user