Skip to content
Snippets Groups Projects
Commit b1638423 authored by DarkGod's avatar DarkGod
Browse files

fix rwops close

parent 1af8fc9b
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ static size_t physfsrwops_write(SDL_RWops *rw, const void *ptr, size_t size, siz
static int physfsrwops_close(SDL_RWops *rw)
{
PHYSFS_File *handle = (PHYSFS_File *) rw->hidden.unknown.data1;
if (!PHYSFS_close(handle))
if (PHYSFS_close(handle))
{
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());
return(-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment