(svn r13396) -Fix (r13375): assertion failing when changing grfs in game (compatible grfs)
authorglx
Fri, 06 Jun 2008 19:27:09 +0000
changeset 9471 b4162824cdea
parent 9470 08424e2e79e4
child 9472 708400e63e4b
(svn r13396) -Fix (r13375): assertion failing when changing grfs in game (compatible grfs)
src/gamelog.cpp
--- a/src/gamelog.cpp	Thu Jun 05 20:54:52 2008 +0000
+++ b/src/gamelog.cpp	Fri Jun 06 19:27:09 2008 +0000
@@ -502,7 +502,7 @@
  */
 void GamelogGRFCompatible(const GRFIdentifier *newg)
 {
-	assert(_gamelog_action_type == GLAT_LOAD);
+	assert(_gamelog_action_type == GLAT_LOAD || _gamelog_action_type == GLAT_GRF);
 
 	LoggedChange *lc = GamelogChange(GLCT_GRFCOMPAT);
 	if (lc == NULL) return;