summaryrefslogtreecommitdiff
path: root/src/train.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/train.cpp')
-rw-r--r--src/train.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train.cpp b/src/train.cpp
index 2604898..2db57ef 100644
--- a/src/train.cpp
+++ b/src/train.cpp
@@ -3,13 +3,13 @@
#include "bitmap.h"
#include "level.h"
-void Train::update(Level& level)
+void Train::update()
{
if (m_next) {
m_speed = m_next->m_speed;
m_progress = m_next->m_progress;
} else {
- auto tile = level.get(x, y);
+ auto tile = m_level.get(x, y);
if (tile == 0)
return;
}