Browse Source

Merge pull request #2036 from rilian-la-te/fix-serializer-assert

CSerializer: fix debug assertion
Ivan Savenko 2 years ago
parent
commit
9c62748151
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/serializer/CSerializer.h

+ 1 - 1
lib/serializer/CSerializer.h

@@ -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