Skip to content

Commit

Permalink
Handle case of area being nil
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Dec 17, 2010
1 parent 1cf140c commit 0f86f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ATCP_Mapper.xml
Expand Up @@ -867,7 +867,7 @@ function get_room (uid)
end -- for
table.sort (texits)
local areaname = room.area
local areaname = room.area or "Unknown"
if tonumber (areaname) then
areaname = areas [tonumber (areaname)]
end -- convert to name
Expand Down

0 comments on commit 0f86f1a

Please sign in to comment.