summaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.cpp b/src/state.cpp
index b7bc7bf4..8f8c3692 100644
--- a/src/state.cpp
+++ b/src/state.cpp
@@ -44,7 +44,7 @@ State::~State() throw() {
}
}
-void State::update(ConnectionHandler &connectionHandler)
+void State::update()
{
// update game state (update AI, etc.)
for (std::map<unsigned int, MapComposite>::iterator i = maps.begin();
@@ -78,7 +78,7 @@ void State::update(ConnectionHandler &connectionHandler)
msg.writeLong(b2->get()->getX());// x
msg.writeLong(b2->get()->getY());// y
- connectionHandler.sendTo(*b, msg);
+ connectionHandler->sendTo(*b, msg);
}
}
}