mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Initialize AI morale to normal instead of hopeless (#345)
This commit is contained in:
@@ -419,6 +419,7 @@ SOLDIERCREATE_STRUCT::~SOLDIERCREATE_STRUCT() {
|
|||||||
// Note that the constructor does this automatically.
|
// Note that the constructor does this automatically.
|
||||||
void SOLDIERCREATE_STRUCT::initialize() {
|
void SOLDIERCREATE_STRUCT::initialize() {
|
||||||
memset( this, 0, SIZEOF_SOLDIERCREATE_STRUCT_POD);
|
memset( this, 0, SIZEOF_SOLDIERCREATE_STRUCT_POD);
|
||||||
|
this->bAIMorale = MORALE_NORMAL;
|
||||||
Inv.clear();
|
Inv.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user