1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

macOS: fix packet deserialization (#479)

This commit is contained in:
Konstantin Vukolov
2018-08-14 00:48:00 +03:00
committed by Arseniy Shestakov
parent de5f1461ba
commit 96215233bc
9 changed files with 72 additions and 30 deletions

View File

@@ -99,7 +99,9 @@ public:
else
{
assert(!i->second.empty());
#ifndef __APPLE__
assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>));
#endif
VectorizedObjectInfo<T, U> *ret = &(boost::any_cast<VectorizedObjectInfo<T, U>&>(i->second));
return ret;
}