mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: release exes could crash when hovering in the save screen
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8586 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-3
@@ -1419,7 +1419,7 @@ BOOLEAN DisplaySaveGameEntry( INT32 bEntryID )
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
if( bEntryID == -1 )
|
||||
if( bEntryID < 0 )
|
||||
return( TRUE );
|
||||
|
||||
//if we are currently fading out, leave
|
||||
@@ -2178,10 +2178,9 @@ void SelectedSaveRegionMovementCallBack(MOUSE_REGION * pRegion, INT32 reason )
|
||||
{
|
||||
if( reason & MSYS_CALLBACK_REASON_LOST_MOUSE )
|
||||
{
|
||||
UINT8 bTemp;
|
||||
pRegion->uiFlags &= (~BUTTON_CLICKED_ON );
|
||||
|
||||
bTemp = gbHighLightedLocation;
|
||||
INT8 bTemp = gbHighLightedLocation;
|
||||
gbHighLightedLocation = -1;
|
||||
DisplaySaveGameEntry( bTemp );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user