Skip to content

Commit 0f86f1a

Browse files
committed
Handle case of area being nil
1 parent 1cf140c commit 0f86f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/ATCP_Mapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ function get_room (uid)
867867
end -- for
868868
table.sort (texits)
869869
870-
local areaname = room.area
870+
local areaname = room.area or "Unknown"
871871
if tonumber (areaname) then
872872
areaname = areas [tonumber (areaname)]
873873
end -- convert to name

0 commit comments

Comments
 (0)