mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +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 );
|
return( TRUE );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( bEntryID == -1 )
|
if( bEntryID < 0 )
|
||||||
return( TRUE );
|
return( TRUE );
|
||||||
|
|
||||||
//if we are currently fading out, leave
|
//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 )
|
if( reason & MSYS_CALLBACK_REASON_LOST_MOUSE )
|
||||||
{
|
{
|
||||||
UINT8 bTemp;
|
|
||||||
pRegion->uiFlags &= (~BUTTON_CLICKED_ON );
|
pRegion->uiFlags &= (~BUTTON_CLICKED_ON );
|
||||||
|
|
||||||
bTemp = gbHighLightedLocation;
|
INT8 bTemp = gbHighLightedLocation;
|
||||||
gbHighLightedLocation = -1;
|
gbHighLightedLocation = -1;
|
||||||
DisplaySaveGameEntry( bTemp );
|
DisplaySaveGameEntry( bTemp );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user