Initialize AI morale to normal instead of hopeless (#345)

This commit is contained in:
Asdow
2024-12-05 23:05:50 +02:00
committed by GitHub
parent febb283c3a
commit dcde413b7b
+1
View File
@@ -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();
}