fix bug if file isnt found

This commit is contained in:
Matthew 2025-11-21 16:42:10 +11:00
parent 0b815bdc8d
commit 04ab6d9e6f

View File

@ -1923,10 +1923,10 @@ LoadFile(Arena* arena, string file_name)
fread(data.ptr+pos, 1, length, fp);
pos -= length;
}
}
f.flush();
f.close();
}
return data;
}