mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Zero out structures when creating houses and rooms
This commit is contained in:
@@ -182,6 +182,8 @@ void CreatePointers (void)
|
||||
thisRoom = (roomPtr)NewPtr(sizeof(roomType));
|
||||
if (thisRoom == nil)
|
||||
RedAlert(kErrNoMemory);
|
||||
|
||||
memset(thisRoom, 0, sizeof(roomType));
|
||||
|
||||
hotSpots = nil;
|
||||
hotSpots = (hotPtr)NewPtr(sizeof(hotObject) * kMaxHotSpots);
|
||||
|
Reference in New Issue
Block a user