mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Altered the RemoveRegion failsafe so use the REGION_EXISTS flag. This seems to resolve the "timed" crash and/or infinite loop that people have been reporting with sector inventory.
Added a cheat hotkey that creates a huge variety of items for troubleshooting sector inventory with multiple pages. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2442 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -987,7 +987,7 @@ void MSYS_RemoveRegion(MOUSE_REGION *region)
|
||||
AssertMsg( 0, "Attempting to remove a NULL region.");
|
||||
}
|
||||
//CHRISL: Obviously, we should never run this function if a region hasn't been setup, but a failsafe would be nice
|
||||
if(region->IDNumber == 0)
|
||||
if(!(region->uiFlags & MSYS_REGION_EXISTS))
|
||||
return;
|
||||
|
||||
#ifdef MOUSESYSTEM_DEBUGGING
|
||||
|
||||
Reference in New Issue
Block a user