We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d565367 commit 7a7841cCopy full SHA for 7a7841c
code/missionui/missiondebrief.cpp
@@ -2115,11 +2115,13 @@ void debrief_close(bool API_Access)
2115
}
2116
2117
// unload bitmaps
2118
- if (Background_bitmap >= 0){
+ // Not used by the API
2119
+ if (!API_Access && Background_bitmap >= 0) {
2120
bm_release(Background_bitmap);
2121
2122
- if (Award_bg_bitmap >= 0){
2123
2124
+ if (!API_Access && Award_bg_bitmap >= 0) {
2125
bm_release(Award_bg_bitmap);
2126
2127
0 commit comments