summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index c3ecedf..0d66c98 100644
--- a/main.lua
+++ b/main.lua
@@ -90,7 +90,8 @@ end
function states.hud.update(dt)
if hud then
local w, h = love.graphics.getWidth(), love.graphics.getHeight()
- hud:update(dt, w, h, finalScale)
+ local player = world and world:getPlayer()
+ hud:update(dt, w, h, finalScale, player)
end
end