Zero out structures when creating houses and rooms

This commit is contained in:
elasota
2021-05-11 19:47:05 -04:00
parent e7b02f37a5
commit 95260f8d8a
3 changed files with 5 additions and 0 deletions

View File

@@ -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);