mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-24 15:16:38 +00:00
Fix room count mismatch
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user