summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfsziprwops.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-01 00:30:58 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-01 00:30:58 +0300
commit55e0c28be50b70d2b69dd805f249074b6c191ad2 (patch)
tree16c624c3fbc1fb42d2b526d8edce487a0e3f5651 /src/fs/virtfs/virtfsziprwops.cpp
parentef151a7e96c9339660590bf908825c5f42d7d2f3 (diff)
downloadplus-55e0c28be50b70d2b69dd805f249074b6c191ad2.tar.gz
plus-55e0c28be50b70d2b69dd805f249074b6c191ad2.tar.bz2
plus-55e0c28be50b70d2b69dd805f249074b6c191ad2.tar.xz
plus-55e0c28be50b70d2b69dd805f249074b6c191ad2.zip
Fix compilation for android and fix code style.
Diffstat (limited to 'src/fs/virtfs/virtfsziprwops.cpp')
-rw-r--r--src/fs/virtfs/virtfsziprwops.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/virtfs/virtfsziprwops.cpp b/src/fs/virtfs/virtfsziprwops.cpp
index 24162e129..098b409e3 100644
--- a/src/fs/virtfs/virtfsziprwops.cpp
+++ b/src/fs/virtfs/virtfsziprwops.cpp
@@ -137,10 +137,10 @@ namespace VirtFsZip
#ifdef USE_SDL2
RWOPSINT rwops_size(SDL_RWops *const rw)
{
- VirtFile *const handle = static_cast<VirtFile *const>(
- rw->hidden.unknown.data1);
if (!rw)
return 0;
+ VirtFile *const handle = static_cast<VirtFile *const>(
+ rw->hidden.unknown.data1);
return handle->mSize;
}
#endif // USE_SDL2