1
0
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:
Konstantin
2023-04-18 23:29:47 +03:00
parent 56de0c9f56
commit 4a79e2ccd9
+1 -1
View File
@@ -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;
} }
} }