summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-07-11 11:39:24 +0200
committerPatric Stout <github@truebrain.nl>2021-07-11 12:16:07 +0200
commit6f0c6fb2aee54ac1b05cecd3f2e205b77ee4d0fc (patch)
tree55a6db525676f1ca267fd5000993f054d4270117 /src
parenta4987233454b65c7ebcee37fb22e37c13638476d (diff)
downloadopenttd-6f0c6fb2aee54ac1b05cecd3f2e205b77ee4d0fc.tar.xz
Fix a4987233: NewGRFs could no longer be loaded from the NewGRF folder.
This statement was removed by accident, as it felt it could be removed. But it is used to know if the NewGRF is from the baseset folder or from the NewGRF folder.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 17e5ee6a0..d5dfc427c 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -9853,6 +9853,8 @@ void LoadNewGRF(uint load_index, uint num_baseset)
num_non_static++;
}
+ num_grfs++;
+
LoadNewGRFFile(c, stage, subdir, false);
if (stage == GLS_RESERVE) {
SetBit(c->flags, GCF_RESERVED);