summaryrefslogtreecommitdiff
path: root/src/newgrf_config.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 20:50:21 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 20:50:21 +0000
commit561b25d0319674716b51d63594e146132d0a33e3 (patch)
tree9329a875bcf71cf40becc5b8a254db8ddfdcf05e /src/newgrf_config.cpp
parentbcbdc3933c4aeff90692a1059375b1f590e7c904 (diff)
downloadopenttd-561b25d0319674716b51d63594e146132d0a33e3.tar.xz
(svn r23601) -Fix: fix the conflict in window number
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r--src/newgrf_config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index 6333a24d0..9ce75b679 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -277,7 +277,7 @@ void GRFParameterInfo::SetValue(struct GRFConfig *config, uint32 value)
SB(config->param[this->param_nr], this->first_bit, this->num_bit, value);
}
config->num_params = max<uint>(config->num_params, this->param_nr + 1);
- SetWindowClassesDirty(WC_GAME_OPTIONS); // Is always the newgrf window
+ SetWindowDirty(WC_GAME_OPTIONS, WN_GAME_OPTIONS_NEWGRF_STATE);
}
/**
@@ -688,7 +688,7 @@ void DoScanNewGRFFiles(void *callback)
/* Yes... these are the NewGRF windows */
InvalidateWindowClassesData(WC_SAVELOAD, 0, true);
- InvalidateWindowData(WC_GAME_OPTIONS, 0, GOID_NEWGRF_RESCANNED, true);
+ InvalidateWindowData(WC_GAME_OPTIONS, WN_GAME_OPTIONS_NEWGRF_STATE, GOID_NEWGRF_RESCANNED, true);
if (callback != NULL) ((NewGRFScanCallback*)callback)->OnNewGRFsScanned();
DeleteWindowByClass(WC_MODAL_PROGRESS);