Skip to content

Commit 097f5a2

Browse files
authored
Close the current file before deleting the pointer
1 parent dbe4e00 commit 097f5a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/natives.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ cell AMX_NATIVE_CALL Native::File_Close(AMX* amx, cell* params)
571571
{
572572
if (*p == address)
573573
{
574+
address->close();
574575
delete address;
575576
SM::Dosya->erase(p);
576577
return 1;

0 commit comments

Comments
 (0)