From e74cd9883d44acc3230f2836c03939b96a74eb23 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Tue, 31 Jan 2017 04:02:55 +0200 Subject: [PATCH] We don't want to store event objects in savegames. --- src/events.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/events.h b/src/events.h index fad159e76..b5bd76bff 100755 --- a/src/events.h +++ b/src/events.h @@ -111,6 +111,8 @@ public: // 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) this->ObjectFlags |= OF_Fixed; + // we don't want to store events into the savegames because they are global. + this->ObjectFlags |= OF_Transient; } };