mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
* fixed remaining part of #1071 — the screen surface has always to be created in the main thread
* hold events in the queue by value (less ptr jugglery)
This commit is contained in:
@ -477,10 +477,7 @@ void CBattleResultWindow::bExitf()
|
||||
{
|
||||
if(LOCPLINT->cb->getStartInfo()->mode == StartInfo::DUEL)
|
||||
{
|
||||
SDL_Event ev;
|
||||
ev.type = SDL_QUIT;
|
||||
ev.user.code = 0;
|
||||
SDL_PushEvent(&ev);
|
||||
CGuiHandler::pushSDLEvent(SDL_QUIT);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user