diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2020-05-04 20:12:38 +0100 |
---|---|---|
committer | Yexo <t.marinussen@gmail.com> | 2020-05-04 21:21:06 +0200 |
commit | 8edbb42fe82308bdb6cddb2f5f8e584e939f53f6 (patch) | |
tree | 964b8c6d98f8e8b1ac69b5b37be3be9b47c17744 | |
parent | c01803cd42b06c9e0716b86079d825dbb06036ad (diff) | |
download | openttd-8edbb42fe82308bdb6cddb2f5f8e584e939f53f6.tar.xz |
Fix c01a2e2: crash on loading old savegames with invalid animated tile information
-rw-r--r-- | src/saveload/afterload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 432e35dd2..32dd7c747 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2203,7 +2203,7 @@ bool AfterLoadGame() } if (remove) { - DeleteAnimatedTile(*tile); + tile = _animated_tiles.erase(tile); } else { tile++; } |