(svn r15656) -Fix: Changing dynamic_engines also requires reloading newgrfs as well as resetting the OverrideManager.

This commit is contained in:
frosch 2009-03-09 21:33:05 +00:00
parent e982100fe6
commit aa7a19fd49
1 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,8 @@
#include "settings_func.h"
#include "ini_type.h"
#include "ai/ai_config.hpp"
#include "newgrf.h"
#include "engine_base.h"
#include "void_map.h"
#include "station_base.h"
@ -1151,6 +1153,11 @@ static bool ChangeDynamicEngines(int32 p1)
return false;
}
}
/* Reset the engines, they will get new EngineIDs */
_engine_mngr.ResetToDefaultMapping();
ReloadNewGRFData();
return true;
}