From 179e13363899112b9a1181eb10e0754b583a63eb Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sat, 8 Apr 2017 23:03:50 +0300
Subject: Fix compilation error with SDL 2.

---
 src/resources/image/subimage.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/resources')

diff --git a/src/resources/image/subimage.cpp b/src/resources/image/subimage.cpp
index 20ed676d7..7d936ecbf 100644
--- a/src/resources/image/subimage.cpp
+++ b/src/resources/image/subimage.cpp
@@ -44,12 +44,12 @@ SubImage::SubImage(Image *const parent,
         mHasAlphaChannel = mParent->hasAlphaChannel();
         mIsAlphaVisible = mHasAlphaChannel;
         mAlphaChannel = mParent->SDLgetAlphaChannel();
-        mSource = parent->getIdPath();
+        mSource = parent->mIdPath;
 #ifdef DEBUG_IMAGES
         logger->log("set name2 %p, %s", this, mSource.c_str());
 #endif  // DEBUG_IMAGES
 #ifdef DEBUG_BIND_TEXTURE
-        mIdPath = parent->getIdPath();
+        mIdPath = parent->mIdPath;
 #endif  // DEBUG_BIND_TEXTURE
     }
     else
-- 
cgit v1.2.3-70-g09d2