Fixed SystemStackError when loading a connected map with an event at its edge facing away from that edge

This commit is contained in:
Maruno17
2022-06-03 14:42:04 +01:00
parent b441411b2e
commit ff1f9633f3
2 changed files with 4 additions and 4 deletions

View File

@@ -65,8 +65,8 @@ class PokemonMapFactory
return getMap(id, false)
end
def getNewMap(playerX, playerY)
id = $game_map.map_id
def getNewMap(playerX, playerY, map_id = nil)
id = map_id || $game_map.map_id
MapFactoryHelper.eachConnectionForMap(id) do |conn|
mapidB = nil
newx = 0