From dcde413b7bb0597092c64cec1581caffcc807aec Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Thu, 5 Dec 2024 23:05:50 +0200 Subject: [PATCH] Initialize AI morale to normal instead of hopeless (#345) --- Tactical/Soldier Create.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Tactical/Soldier Create.cpp b/Tactical/Soldier Create.cpp index 445fcfc6..202d1dc6 100644 --- a/Tactical/Soldier Create.cpp +++ b/Tactical/Soldier Create.cpp @@ -419,6 +419,7 @@ SOLDIERCREATE_STRUCT::~SOLDIERCREATE_STRUCT() { // Note that the constructor does this automatically. void SOLDIERCREATE_STRUCT::initialize() { memset( this, 0, SIZEOF_SOLDIERCREATE_STRUCT_POD); + this->bAIMorale = MORALE_NORMAL; Inv.clear(); }