Skip to content

Commit 515beef

Browse files
fix cleanup of empty model.subsystems files (#6915)
1 parent 7281f71 commit 515beef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code/model/modelread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3035,12 +3035,12 @@ modelread_status read_model_file_no_subsys(polymodel * pm, const char* filename,
30353035
int size;
30363036

30373037
cfclose(ss_fp);
3038-
ss_fp = cfopen(debug_name, "rb");
3038+
ss_fp = cfopen(debug_name, "rb", CF_TYPE_TABLES);
30393039
if ( ss_fp ) {
30403040
size = cfilelength(ss_fp);
30413041
cfclose(ss_fp);
30423042
if ( size <= 0 ) {
3043-
_unlink(debug_name);
3043+
cf_delete(debug_name, CF_TYPE_TABLES);
30443044
}
30453045
}
30463046
}

0 commit comments

Comments
 (0)