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:
Flugente
2018-07-24 20:45:46 +00:00
parent cd5441d875
commit 51c21c625a
+2 -3
View File
@@ -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 );