mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
r9402: Fixed nullptr dereference & assertion error
https://github.com/1dot13/source/issues/3#issue-1400794531 https://github.com/1dot13/source/issues/2#issue-1400794162
This commit is contained in:
@@ -6731,11 +6731,10 @@ void TurnOnSectorLocator( UINT8 ubProfileID )
|
||||
if ( ( ubProfileID == SKYRIDER ) && fSkyRiderSetUp )
|
||||
{
|
||||
// if helicopter position is being shown, don't do this, too, cause the helicopter icon is on top and it looks
|
||||
// like crap. I tried moving the heli icon blit to before, but that screws up it's blitting.
|
||||
if ( gusMapDisplayColourMode != MAP_DISPLAY_AIRSPACE && gusMapDisplayColourMode != MAP_DISPLAY_AIRSPACE_COLOURED_SAMS )
|
||||
// like crap. I tried moving the heli icon blit to before, but that screws up it's blitting.
|
||||
if ( gusMapDisplayColourMode != MAP_DISPLAY_AIRSPACE && gusMapDisplayColourMode != MAP_DISPLAY_AIRSPACE_COLOURED_SAMS && iHelicopterVehicleId != -1 )
|
||||
{
|
||||
// can't use his profile, he's where his chopper is
|
||||
Assert( iHelicopterVehicleId != -1 );
|
||||
gsSectorLocatorX = pVehicleList[ iHelicopterVehicleId ].sSectorX;
|
||||
gsSectorLocatorY = pVehicleList[ iHelicopterVehicleId ].sSectorY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user