summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/imagehelper.cpp')
-rw-r--r--src/resources/imagehelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp
index be6f96ab3..76747979b 100644
--- a/src/resources/imagehelper.cpp
+++ b/src/resources/imagehelper.cpp
@@ -51,7 +51,7 @@ Image *ImageHelper::load(SDL_RWops *const rw)
SDL_Surface *const tmpImage = loadPng(rw);
if (tmpImage == nullptr)
{
- logger->log("Error, image load failed: %s", IMG_GetError());
+ logger->log("Error, image load failed: %s", SDL_GetError());
return nullptr;
}
@@ -67,7 +67,7 @@ Image *ImageHelper::load(SDL_RWops *const rw, Dye const &dye)
SDL_Surface *const tmpImage = loadPng(rw);
if (tmpImage == nullptr)
{
- logger->log("Error, image load failed: %s", IMG_GetError());
+ logger->log("Error, image load failed: %s", SDL_GetError());
BLOCK_END("ImageHelper::load")
return nullptr;
}