diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index 43ccbe29f5..331feda341 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -51,7 +51,8 @@ DEFINE_OLD_POOL_GENERIC(Group, Group) Group::Group(PlayerID owner) { this->owner = owner; - this->num_engines = CallocT(GetEnginePoolSize()); + + if (this->IsValid()) this->num_engines = CallocT(GetEnginePoolSize()); } Group::~Group()