mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-11 21:16:46 +03:00
Fix actors enemy not being able to be set if enemy switch is disabled
This commit is contained in:
parent
2239efa439
commit
e59a24ded3
1 changed files with 1 additions and 1 deletions
|
@ -6418,7 +6418,7 @@ void Actor::UpdateEnemyInternal(void)
|
||||||
|
|
||||||
m_PotentialEnemies.CheckEnemies(this);
|
m_PotentialEnemies.CheckEnemies(this);
|
||||||
|
|
||||||
if (m_Enemy != m_PotentialEnemies.GetCurrentEnemy() && (m_bEnemySwitch || m_Enemy)) {
|
if (m_Enemy != m_PotentialEnemies.GetCurrentEnemy() && (m_bEnemySwitch || !m_Enemy)) {
|
||||||
SetEnemy(m_PotentialEnemies.GetCurrentEnemy(), false);
|
SetEnemy(m_PotentialEnemies.GetCurrentEnemy(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue