Skip to content

Commit 7a7841c

Browse files
MjnMixaelJohnAFernandez
authored andcommitted
Do not unload debrief bitmaps in API mode
1 parent d565367 commit 7a7841c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

code/missionui/missiondebrief.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,11 +2115,13 @@ void debrief_close(bool API_Access)
21152115
}
21162116

21172117
// unload bitmaps
2118-
if (Background_bitmap >= 0){
2118+
// Not used by the API
2119+
if (!API_Access && Background_bitmap >= 0) {
21192120
bm_release(Background_bitmap);
21202121
}
21212122

2122-
if (Award_bg_bitmap >= 0){
2123+
// Not used by the API
2124+
if (!API_Access && Award_bg_bitmap >= 0) {
21232125
bm_release(Award_bg_bitmap);
21242126
}
21252127

0 commit comments

Comments
 (0)