Avoid crash when npc don't find alternative place to go

This commit is contained in:
sys4-fr 2018-03-25 21:22:19 +02:00
parent 166db4b5e5
commit dfaa904ba8

View File

@ -259,10 +259,10 @@ function npc.places.find_unused_place(self, place_category, place_type, original
return alternative_places[i]
end
end
--result = original_place
else
result = original_place
--else
end
result = original_place
return result
end