From 3e7de9aafa92e317b20c0accb4a93b51cd9cffa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= Date: Thu, 5 Oct 2023 11:40:28 -0300 Subject: [PATCH] Fix inheritance for bNoSaveGame --- src/gamedata/info.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gamedata/info.cpp b/src/gamedata/info.cpp index 2e0109db49c..5942ae2d36a 100644 --- a/src/gamedata/info.cpp +++ b/src/gamedata/info.cpp @@ -487,6 +487,8 @@ void PClassActor::InitializeDefaults() { memset(Defaults + ParentClass->Size, 0, Size - ParentClass->Size); } + + optr->ObjectFlags = ((DObject*)ParentClass->Defaults)->ObjectFlags & OF_Transient; } else {