(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

pull/155/head
rubidium 14 years ago
parent 56f37ecaef
commit 9317384c1a

@ -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

Loading…
Cancel
Save