From 5618f4890df5eb9ea91eb73a7a7dd7df745863a6 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 23 Sep 2007 12:55:09 +0000 Subject: Robustified code with respect to insertion failures. --- src/game-server/testing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game-server/testing.cpp') diff --git a/src/game-server/testing.cpp b/src/game-server/testing.cpp index cf125ca..4828df4 100644 --- a/src/game-server/testing.cpp +++ b/src/game-server/testing.cpp @@ -19,7 +19,7 @@ static void dropItem(MapComposite *map, int x, int y, int type) i->setMap(map); Point pos(x, y); i->setPosition(pos); - GameState::insert(i); + GameState::insertSafe(i); } void testingMap(MapComposite *map) -- cgit