mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	CSerializer: fix any_cast
This commit is contained in:
		| @@ -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; | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user