summaryrefslogtreecommitdiff
path: root/src/test/testlauncher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testlauncher.cpp')
-rw-r--r--src/test/testlauncher.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index 09c7ef2ed..26ad10174 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -261,8 +261,7 @@ int TestLauncher::testDye()
rw = MPHYSFSRWOPS_openRead(
"graphics/sprites/arrow_up.png");
d = new Dye("S:#0000ff,00ff00,5c5cff,ff0000");
- image = d ? surfaceImageHelper->load(rw, *d)
- : surfaceImageHelper->load(rw);
+ image = surfaceImageHelper->load(rw, *d);
if (image)
{
surface = surfaceImageHelper->create32BitSurface(