Skip to content

Commit

Permalink
_intAddMissionResult: Close guide screen
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 18, 2024
1 parent 5707a8b commit ded7da6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
#include "keybind.h"
#include "campaigninfo.h"
#include "wzapi.h"
#include "screens/guidescreen.h"

#define IDMISSIONRES_TXT 11004
#define IDMISSIONRES_LOAD 11005
Expand Down Expand Up @@ -2241,6 +2242,9 @@ static bool _intAddMissionResult(bool result, bool bPlaySuccess, bool showBackDr
screen_RestartBackDrop();
}

// ensure the guide screen is closed
closeGuideScreen();

// ensure these widgets are deleted before attempting to create
intDestroyMissionResultWidgets();

Expand Down

0 comments on commit ded7da6

Please sign in to comment.