src/gamelog.cpp
changeset 9471 b4162824cdea
parent 9457 75f11a6caef8
child 9524 8e5c07d4d646
equal deleted inserted replaced
9470:08424e2e79e4 9471:b4162824cdea
   500  * (the same ID, but different MD5 hash)
   500  * (the same ID, but different MD5 hash)
   501  * @param newg new (updated) GRF
   501  * @param newg new (updated) GRF
   502  */
   502  */
   503 void GamelogGRFCompatible(const GRFIdentifier *newg)
   503 void GamelogGRFCompatible(const GRFIdentifier *newg)
   504 {
   504 {
   505 	assert(_gamelog_action_type == GLAT_LOAD);
   505 	assert(_gamelog_action_type == GLAT_LOAD || _gamelog_action_type == GLAT_GRF);
   506 
   506 
   507 	LoggedChange *lc = GamelogChange(GLCT_GRFCOMPAT);
   507 	LoggedChange *lc = GamelogChange(GLCT_GRFCOMPAT);
   508 	if (lc == NULL) return;
   508 	if (lc == NULL) return;
   509 
   509 
   510 	memcpy(&lc->grfcompat, newg, sizeof(GRFIdentifier));
   510 	memcpy(&lc->grfcompat, newg, sizeof(GRFIdentifier));