MOHAWK: Fix MohawkEngine_Myst::runLoadDialog
This incorrectly invoked (indirectly) the runModal() method of a SaveLoadChooser, but for that one should use runModalWithPluginAndTarget instead. svn-id: r55816
This commit is contained in:
parent
41121be4d6
commit
7bac92388f
2 changed files with 13 additions and 3 deletions
|
@ -219,7 +219,7 @@ void MainMenuDialog::reflowLayout() {
|
|||
}
|
||||
|
||||
void MainMenuDialog::save() {
|
||||
Common::String gameId = ConfMan.get("gameid");
|
||||
const Common::String gameId = ConfMan.get("gameid");
|
||||
|
||||
const EnginePlugin *plugin = 0;
|
||||
EngineMan.findGame(gameId, &plugin);
|
||||
|
@ -242,7 +242,7 @@ void MainMenuDialog::save() {
|
|||
}
|
||||
|
||||
void MainMenuDialog::load() {
|
||||
Common::String gameId = ConfMan.get("gameid");
|
||||
const Common::String gameId = ConfMan.get("gameid");
|
||||
|
||||
const EnginePlugin *plugin = 0;
|
||||
EngineMan.findGame(gameId, &plugin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue