mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 12:36:45 +03:00
New FLOOR_INFO struct; Refactoring rooms part I
This commit is contained in:
parent
a0279655c5
commit
235dab2f13
29 changed files with 610 additions and 642 deletions
|
@ -1485,7 +1485,7 @@ short GameScriptItem::GetRoom()
|
|||
|
||||
void GameScriptItem::SetRoom(short room)
|
||||
{
|
||||
if (room < 0 || room >= NumberRooms)
|
||||
if (room < 0 || room >= Rooms.size())
|
||||
{
|
||||
if (WarningsAsErrors)
|
||||
throw runtime_error("invalid room number");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue