summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2020-05-04 20:12:38 +0100
committerYexo <t.marinussen@gmail.com>2020-05-04 21:21:06 +0200
commit8edbb42fe82308bdb6cddb2f5f8e584e939f53f6 (patch)
tree964b8c6d98f8e8b1ac69b5b37be3be9b47c17744 /src/saveload
parentc01803cd42b06c9e0716b86079d825dbb06036ad (diff)
downloadopenttd-8edbb42fe82308bdb6cddb2f5f8e584e939f53f6.tar.xz
Fix c01a2e2: crash on loading old savegames with invalid animated tile information
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp2
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++;
}