summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/newgrf.c b/src/newgrf.c
index c2b4e464b..c1ecd359e 100644
--- a/src/newgrf.c
+++ b/src/newgrf.c
@@ -3682,8 +3682,10 @@ void LoadNewGRF(uint load_index, uint file_index)
if (stage == GLS_LABELSCAN) InitNewGRFFile(c, _cur_spriteid);
LoadNewGRFFile(c, slot++, stage);
- if (stage == GLS_ACTIVATION) ClearTemporaryNewGRFData();
- DEBUG(sprite, 2, "Currently %i sprites are loaded", load_index);
+ if (stage == GLS_ACTIVATION) {
+ ClearTemporaryNewGRFData();
+ DEBUG(sprite, 2, "Currently %i sprites are loaded", _cur_spriteid);
+ }
}
}