Fix room count mismatch

This commit is contained in:
elasota
2021-03-08 21:58:34 -05:00
parent f2cda23b0f
commit 7f4d782c0d
2 changed files with 3 additions and 3 deletions

View File

@@ -616,7 +616,7 @@ void ValidateNumberOfRooms (void)
reportsRooms = (long)(*thisHouse)->nRooms;
countedRooms = (GetHandleSize(thisHouse.StaticCast<void>()) -
sizeof(houseType)) / sizeof(roomType);
sizeof(houseType)) / sizeof(roomType) + 1;
if (reportsRooms != countedRooms)
{
(*thisHouse)->nRooms = (short)countedRooms;