Fix Fort Ludios room type

... and add an impossible when lua tries to create unknown room type.
This commit is contained in:
Pasi Kallinen
2020-03-01 10:13:53 +02:00
parent 95385cfc40
commit ce3b45944b
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ function treasure_spot(x,y)
end end
end end
des.region({ region={21,08,35,11}, lit=1, type="orginary" }) des.region({ region={21,08,35,11}, lit=1, type="ordinary" })
local treasury = selection.area(21,08,35,11); local treasury = selection.area(21,08,35,11);
treasury:iterate(treasure_spot); treasury:iterate(treasure_spot);
+2
View File
@@ -3496,6 +3496,8 @@ int defval;
res = room_types[i].type; res = room_types[i].type;
break; break;
} }
if (!room_types[i].name)
impossible("Unknown room type '%s'", roomstr);
} }
Free(roomstr); Free(roomstr);
return res; return res;