mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Merge pull request #2027 from rilian-la-te/fix-any-cast
CSerializer: fix any_cast
This commit is contained in:
commit
ff5e98e78b
@ -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