diff --git a/src/filesystem.cpp b/src/filesystem.cpp index f5cfddc..2b1e6ee 100644 --- a/src/filesystem.cpp +++ b/src/filesystem.cpp @@ -117,6 +117,7 @@ static int SDL_RWopsClose(SDL_RWops *ops) return -1; int result = PHYSFS_close(f); + ops->hidden.unknown.data1 = 0; return (result != 0) ? 0 : -1; }