(svn r19391) -Fix (r19255): shuffling around GRFIdentifier in GRFConfig caused gamelog to log the wrong data which could cause crashes later on when that data is queried

This commit is contained in:
rubidium 2010-03-12 19:18:26 +00:00
parent c7821df971
commit 0903463824
1 changed files with 2 additions and 2 deletions

View File

@ -543,7 +543,7 @@ void GamelogGRFAdd(const GRFConfig *newg)
LoggedChange *lc = GamelogChange(GLCT_GRFADD);
if (lc == NULL) return;
memcpy(&lc->grfadd, newg, sizeof(GRFIdentifier));
lc->grfadd = newg->ident;
}
/** Logs loading compatible GRF
@ -557,7 +557,7 @@ void GamelogGRFCompatible(const GRFIdentifier *newg)
LoggedChange *lc = GamelogChange(GLCT_GRFCOMPAT);
if (lc == NULL) return;
memcpy(&lc->grfcompat, newg, sizeof(GRFIdentifier));
lc->grfcompat = *newg;
}
/** Logs changing GRF order