diff -r 142c31e35bfa -r 6faf40f7a9ac src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp Tue Jul 22 19:25:47 2008 +0000 +++ b/src/newgrf_gui.cpp Tue Jul 22 20:52:30 2008 +0000 @@ -607,12 +607,14 @@ GetGRFPresetList(&_grf_preset_list); /* Switch to this preset */ - for (uint i = 0; i < lengthof(_grf_preset_list); i++) { + for (uint i = 0; i < _grf_preset_list.Length(); i++) { if (_grf_preset_list[i] != NULL && strcmp(_grf_preset_list[i], str) == 0) { this->preset = i; break; } } + + this->SetDirty(); break; case SNGRFS_SET_PARAMETERS: {