FULLPIPE: Fix game save/load
This commit is contained in:
parent
783d968e20
commit
a60558071d
3 changed files with 3 additions and 5 deletions
|
@ -475,9 +475,11 @@ void MfcArchive::writeObject(CObject *obj) {
|
|||
writeUint16LE(0xffff); // New class
|
||||
_objectHash[obj] = _lastIndex++;
|
||||
|
||||
writeUint16LE(1); // schema
|
||||
|
||||
switch (obj->_objtype) {
|
||||
case kObjTypeGameVar:
|
||||
writePascalString(lookupObjectId(kGameVar));
|
||||
writePascalString(lookupObjectId(kGameVar), true); // Two byte counter
|
||||
break;
|
||||
default:
|
||||
error("Unhandled save for object type: %d", obj->_objtype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue