From 5f809ab7661b5fa5569abb2c7fd3ed23e24070b3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 18:51:36 +0300 Subject: improve pointer usage physfsrwops. --- src/utils/physfsrwops.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/physfsrwops.cpp b/src/utils/physfsrwops.cpp index d6a1e891a..fc0020433 100644 --- a/src/utils/physfsrwops.cpp +++ b/src/utils/physfsrwops.cpp @@ -189,12 +189,12 @@ static SDL_RWops *create_rwops(PHYSFS_file *const handle) if (retval) { #ifdef USE_SDL2 - retval->size = physfsrwops_size; + retval->size = &physfsrwops_size; #endif - retval->seek = physfsrwops_seek; - retval->read = physfsrwops_read; - retval->write = physfsrwops_write; - retval->close = physfsrwops_close; + retval->seek = &physfsrwops_seek; + retval->read = &physfsrwops_read; + retval->write = &physfsrwops_write; + retval->close = &physfsrwops_close; retval->hidden.unknown.data1 = handle; } /* if */ #ifdef DUMP_LEAKED_RESOURCES -- cgit v1.2.3-70-g09d2