CFlameThrower: Assign thermal hot to xe6_27_thermalVisorFlags instead of ORing

Previously the code was neglecting to clear the flags entirely before
assigning the new value to it.
This commit is contained in:
Lioncash 2020-05-09 22:05:53 -04:00
parent 77861a9b9f
commit 665b4f496d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ void CFlameThrower::Accept(IVisitor& visitor) { visitor.Visit(this); }
void CFlameThrower::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
if (msg == EScriptObjectMessage::Registered) {
xe6_27_thermalVisorFlags |= 2;
xe6_27_thermalVisorFlags = 2;
mgr.AddWeaponId(xec_ownerId, xf0_weaponType);
} else if (msg == EScriptObjectMessage::Deleted) {
mgr.RemoveWeaponId(xec_ownerId, xf0_weaponType);