summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 18:51:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit5f809ab7661b5fa5569abb2c7fd3ed23e24070b3 (patch)
tree65d5b8a9166597d49ada096e6d05bdc9ef047622
parent4f66a22a69e7b41db9b9094f08e686faea6abf93 (diff)
downloadmanaplus-5f809ab7661b5fa5569abb2c7fd3ed23e24070b3.tar.gz
manaplus-5f809ab7661b5fa5569abb2c7fd3ed23e24070b3.tar.bz2
manaplus-5f809ab7661b5fa5569abb2c7fd3ed23e24070b3.tar.xz
manaplus-5f809ab7661b5fa5569abb2c7fd3ed23e24070b3.zip
improve pointer usage physfsrwops.
-rw-r--r--src/utils/physfsrwops.cpp10
1 files 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