Serialization : started to unify how to allocate entity whether its from MakeEntity or during deserialization.
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ void Serialize(Archive& ar, World& /*world*/, String filename)
|
||||
{
|
||||
// Todo : utils
|
||||
// Get base entity from type
|
||||
Entity* entity = reinterpret_cast<entity_template*>(rawElement + (idx * stride))->base;
|
||||
Entity* entity = reinterpret_cast<EntityTemplate*>(rawElement + (idx * stride))->base;
|
||||
serialize(ar, entity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user