Changeset - r24168:20eab3331cf0
[Not reviewed]
master
0 1 0
SamuXarick - 4 years ago 2020-05-04 19:12:38
43006711+SamuXarick@users.noreply.github.com
Fix c01a2e2: crash on loading old savegames with invalid animated tile information
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/afterload.cpp
Show inline comments
 
@@ -2200,13 +2200,13 @@ bool AfterLoadGame()
 
			/* and remove if duplicate */
 
			for (auto j = _animated_tiles.begin(); !remove && j < tile; j++) {
 
				remove = *tile == *j;
 
			}
 

	
 
			if (remove) {
 
				DeleteAnimatedTile(*tile);
 
				tile = _animated_tiles.erase(tile);
 
			} else {
 
				tile++;
 
			}
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)