Avoid crash when npc don't find alternative place to go
This commit is contained in:
parent
166db4b5e5
commit
dfaa904ba8
@ -259,10 +259,10 @@ function npc.places.find_unused_place(self, place_category, place_type, original
|
|||||||
return alternative_places[i]
|
return alternative_places[i]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--result = original_place
|
--else
|
||||||
else
|
|
||||||
result = original_place
|
|
||||||
end
|
end
|
||||||
|
result = original_place
|
||||||
|
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user