fix bug if file isnt found
This commit is contained in:
parent
0b815bdc8d
commit
04ab6d9e6f
@ -1923,10 +1923,10 @@ LoadFile(Arena* arena, string file_name)
|
||||
fread(data.ptr+pos, 1, length, fp);
|
||||
pos -= length;
|
||||
}
|
||||
}
|
||||
|
||||
f.flush();
|
||||
f.close();
|
||||
f.flush();
|
||||
f.close();
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user