Skip to content

Commit

Permalink
Do not unload debrief bitmaps in API mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mjn-mixael committed May 11, 2024
1 parent 9d9714f commit a222b29
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 a222b29

Please sign in to comment.