Skip to content

Commit

Permalink
Merge pull request scp-fs2open#6135 from MjnMixael/fix_debrief_ui_mur…
Browse files Browse the repository at this point in the history
…derer

Do not unload debrief bitmaps in API mode
  • Loading branch information
JohnAFernandez authored May 12, 2024
2 parents 2bbc052 + a222b29 commit 23dda4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/missionui/missiondebrief.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2115,11 +2115,13 @@ void debrief_close(bool API_Access)
}

// unload bitmaps
if (Background_bitmap >= 0){
// Not used by the API
if (!API_Access && Background_bitmap >= 0) {
bm_release(Background_bitmap);
}

if (Award_bg_bitmap >= 0){
// Not used by the API
if (!API_Access && Award_bg_bitmap >= 0) {
bm_release(Award_bg_bitmap);
}

Expand Down

0 comments on commit 23dda4b

Please sign in to comment.