aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 18bae1b..d5fc2ad 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -1566,8 +1566,8 @@ EXIT:
break;
case SDLK_l:
currentWorld->addLight({player->loc.x + SCREEN_WIDTH/2, player->loc.y}, 300.0f, {1.0f,1.0f,1.0f});
- currentWorld->getLastLight()->follow(player);
- currentWorld->getLastLight()->makeFlame();
+ currentWorld->getLastLight().follow(player);
+ currentWorld->getLastLight().makeFlame();
break;
case SDLK_f:
currentWorld->addLight({player->loc.x, player->loc.y}, 300.0f, {1.0f,1.0f,1.0f});