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]
|
||||
end
|
||||
end
|
||||
--result = original_place
|
||||
else
|
||||
result = original_place
|
||||
--else
|
||||
end
|
||||
result = original_place
|
||||
|
||||
return result
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user