Skip to content

Commit

Permalink
Initialize AI morale to normal instead of hopeless (1dot13#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asdow authored Dec 5, 2024
1 parent febb283 commit dcde413
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tactical/Soldier Create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit dcde413

Please sign in to comment.