1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

CSerializer: fix debug assertion

Fix compilation in debug mode
This commit is contained in:
Konstantin P
2023-04-19 13:00:51 +03:00
committed by nordsoft
parent 5cf9fbbe02
commit 4e18a3d579

View File

@@ -99,7 +99,7 @@ public:
return nullptr; return nullptr;
else else
{ {
assert(!i->second.empty()); assert(i->second.has_value());
#ifndef __APPLE__ #ifndef __APPLE__
assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>)); assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>));
#endif #endif