From e7b02f37a57591d0aa4397fa66786894aeca0be9 Mon Sep 17 00:00:00 2001 From: elasota Date: Tue, 11 May 2021 19:40:46 -0400 Subject: [PATCH] Fix memory corruption when creating a new house --- GpApp/House.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GpApp/House.cpp b/GpApp/House.cpp index 3930ea5..6251468 100644 --- a/GpApp/House.cpp +++ b/GpApp/House.cpp @@ -214,7 +214,7 @@ Boolean InitializeEmptyHouse (void) if (thisHouse != nil) thisHouse.Dispose(); - const size_t houseSizeNoRooms = sizeof(sizeof(houseType) - sizeof(roomType)); + const size_t houseSizeNoRooms = sizeof(houseType) - sizeof(roomType); thisHouse = NewHandle(houseSizeNoRooms).StaticCast(); if (thisHouse == nil)