mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
- Fixed mantis #1422 (starting another scenario crashes VCMI for now)
- Refactoring
This commit is contained in:
@ -886,6 +886,13 @@ static void listenForEvents()
|
||||
startGame(&si);
|
||||
}
|
||||
break;
|
||||
case PREPARE_RESTART_CAMPAIGN:
|
||||
{
|
||||
auto si = reinterpret_cast<StartInfo *>(ev.user.data1);
|
||||
endGame();
|
||||
startGame(si);
|
||||
}
|
||||
break;
|
||||
case RETURN_TO_MENU_LOAD:
|
||||
endGame();
|
||||
CGPreGame::create();
|
||||
|
Reference in New Issue
Block a user