From ca9f3f98a9d8bd718f11806a33e7a9a2ab284de5 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 18 Dec 2005 00:38:30 +0000 Subject: Made the handlers use the countedPtr for Beings as they should. Fixed a segfault when removing a being from the world. --- src/gamehandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gamehandler.cpp') diff --git a/src/gamehandler.cpp b/src/gamehandler.cpp index 7d525b5f..4c7ae662 100644 --- a/src/gamehandler.cpp +++ b/src/gamehandler.cpp @@ -27,7 +27,7 @@ void GameHandler::receiveMessage(NetComputer &computer, MessageIn &message) { - if (computer.getCharacter() == NULL) + if (computer.getCharacter().get() == NULL) return; MessageOut result; -- cgit v1.2.3-60-g2f50