Fix crash with invalid number passed to select_area

This commit is contained in:
ShadowNinja 2013-09-08 20:52:20 -04:00
parent e86c760c78
commit 547fa726bf

View File

@ -19,6 +19,7 @@ minetest.register_chatcommand("select_area", {
if not id then if not id then
minetest.chat_send_player(name, minetest.chat_send_player(name,
"Invalid usage, see /help select_area.") "Invalid usage, see /help select_area.")
return
end end
for k, area in pairs(areas.areas) do for k, area in pairs(areas.areas) do