Skip to content

Commit 4c23cd0

Browse files
committed
Merge pull request #545 from asarium/fix/iamstupid
Fix some issues from my previous PRs
2 parents 1fbeccd + 564fc9a commit 4c23cd0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

code/bmpman/bmpman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ int bm_load_animation(const char *real_filename, int *nframes, int *fps, int *ke
15841584
bm_bitmaps[n + i].info.ani.eff.type = eff_type;
15851585
sprintf(bm_bitmaps[n + i].info.ani.eff.filename, "%s_%.4d", clean_name, i);
15861586

1587-
// gr_bm_load() returns non-0 on failure
1587+
// bm_load_info() returns non-0 on failure
15881588
if (bm_load_info(eff_type, n + i, bm_bitmaps[n + i].info.ani.eff.filename, NULL, &anim_width, &anim_height, &bpp, &c_type, &mm_lvl, &img_size)) {
15891589
// if we didn't get anything then bail out now
15901590
if (i == 0) {

code/cfile/cfile.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ int cfget_cfile_block()
879879

880880
// Dump a list of all opened files
881881
mprintf(("Out of cfile blocks! Currently opened files:\n"));
882+
dump_opened_files();
882883

883884
Assertion(false, "There are no more free cfile blocks. This means that there are too many files opened by FSO.\n"
884885
"This is probably caused by a programming or scripting error where a file does not get closed."); // out of free cfile blocks

0 commit comments

Comments
 (0)