mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed error with surfacing check if the dive map you're in has no surface map
This commit is contained in:
@@ -393,7 +393,7 @@ Events.onAction += proc { |_sender,_e|
|
||||
divemap = i; break
|
||||
end
|
||||
end
|
||||
if PBTerrain.isDeepWater?($MapFactory.getTerrainTag(divemap,$game_player.x,$game_player.y))
|
||||
if divemap && PBTerrain.isDeepWater?($MapFactory.getTerrainTag(divemap,$game_player.x,$game_player.y))
|
||||
pbSurfacing
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user