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:
parent
56de0c9f56
commit
4a79e2ccd9
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user