We don't want to store event objects in savegames.

This commit is contained in:
ZZYZX 2017-01-31 04:02:55 +02:00
parent 066b22af0a
commit e74cd9883d

View file

@ -111,6 +111,8 @@ public:
// since from what I remember object creation and deletion results in a lot of GC processing // since from what I remember object creation and deletion results in a lot of GC processing
// (and we aren't supposed to pass event objects around anyway) // (and we aren't supposed to pass event objects around anyway)
this->ObjectFlags |= OF_Fixed; this->ObjectFlags |= OF_Fixed;
// we don't want to store events into the savegames because they are global.
this->ObjectFlags |= OF_Transient;
} }
}; };