1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

CSerializer: fix any_cast

This commit is contained in:
Konstantin 2023-04-18 23:29:47 +03:00
parent 56de0c9f56
commit 4a79e2ccd9

View File

@ -103,7 +103,7 @@ public:
#ifndef __APPLE__
assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>));
#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;
}
}