serialization stuff
This commit is contained in:
@@ -105,9 +105,8 @@ namespace Game
|
||||
LOG("Loading %s", fullPath.getCPtr());
|
||||
|
||||
Generated::Deserializer ser;
|
||||
ser.Init(fullPath);
|
||||
Generated::PuzzleData dataBuf;
|
||||
if (ser.ReadT("PZZL", dataBuf))
|
||||
if (ser.Init(fullPath, "PZZL") && ser.ReadT(dataBuf))
|
||||
{
|
||||
if (dataBuf.ID >= BX_COUNTOF(Puzzles))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user