(svn r43) Fix: [ 982666 ] max_loan in editor bug (truelight)

This commit is contained in:
dominik 2004-08-13 19:18:53 +00:00
parent a14c0c1490
commit 3067b9ac63

View File

@ -596,6 +596,11 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
} }
DoCommandP(0, -1, _opt_mod_temp.diff_level, NULL, CMD_CHANGE_DIFFICULTY_LEVEL); DoCommandP(0, -1, _opt_mod_temp.diff_level, NULL, CMD_CHANGE_DIFFICULTY_LEVEL);
DeleteWindow(w); DeleteWindow(w);
// If we are in the editor, we should reload the economy.
// This way when you load a game, the max loan and interest rate
// are loaded correctly.
if (_game_mode == GM_EDITOR)
StartupEconomy();
break; break;
} }
case 11: // Cancel button - close window case 11: // Cancel button - close window