Crash when trying to find waterfalls out of bounds

benedani

Terrarian
Steam or GOG
Steam
Single Player/Multiplayer
Both
Operating System
Windows 10
Terraria Version
1.4.2.3
Controls Used
Keyboard/Mouse
As shown in Wand of Sparking's latest challenge run (timestamped near crash message):

This is the result of the FindWaterfalls() function applying rules to each tile that, after a few initial elimination passes, checks the tiles surrounding the current tile. However, if said tiles don't exist... crash. A simple bounds check should be able to fix this.
Granted this does not happen on a vanilla world, where every tile at the edge of the world gets eliminated first; you have to use TEdit to set up the edge in such a way that it would cause a crash. Still, it would be nice to not have to worry about this.

I'll be doing some guessing on the setup part, but they shouldn't be relevant.
 
Back
Top Bottom