mirror of https://github.com/OpenTTD/OpenTTD
(svn r13396) -Fix (r13375): assertion failing when changing grfs in game (compatible grfs)
parent
ee256e770a
commit
a43c7af33b
|
@ -502,7 +502,7 @@ void GamelogGRFAdd(const GRFConfig *newg)
|
||||||
*/
|
*/
|
||||||
void GamelogGRFCompatible(const GRFIdentifier *newg)
|
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);
|
LoggedChange *lc = GamelogChange(GLCT_GRFCOMPAT);
|
||||||
if (lc == NULL) return;
|
if (lc == NULL) return;
|
||||||
|
|
Loading…
Reference in New Issue