summaryrefslogtreecommitdiff
path: root/src/resources/loaders/rescaledloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/loaders/rescaledloader.cpp')
-rw-r--r--src/resources/loaders/rescaledloader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/loaders/rescaledloader.cpp b/src/resources/loaders/rescaledloader.cpp
index cea73b382..e69814d27 100644
--- a/src/resources/loaders/rescaledloader.cpp
+++ b/src/resources/loaders/rescaledloader.cpp
@@ -71,7 +71,6 @@ Image *Loader::getRescaled(const Image *const image,
const std::string idPath = image->mIdPath + strprintf(
"_rescaled%dx%d", width, height);
const RescaledLoader rl = { image, width, height };
- Image *const img = static_cast<Image *>(
+ return static_cast<Image *>(
ResourceManager::get(idPath, RescaledLoader::load, &rl));
- return img;
}