Fix alert status not changing to red

master
WKFO 2018-11-06 21:31:22 +03:00
parent 9eda0f5629
commit 3a58931d25
1 changed files with 1 additions and 1 deletions

View File

@ -979,7 +979,7 @@ void Ship::UpdateAlertState()
if (GetPositionRelTo(ship).LengthSqr() < ALERT_DISTANCE*ALERT_DISTANCE) {
ship_is_near = true;
Uint32 gunstate = GetFixedGuns()->IsFiring();
Uint32 gunstate = ship->GetFixedGuns()->IsFiring();
if (gunstate) {
ship_is_firing = true;
break;