diff options
| author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-09-23 12:55:09 +0000 |
|---|---|---|
| committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-09-23 12:55:09 +0000 |
| commit | 5618f4890df5eb9ea91eb73a7a7dd7df745863a6 (patch) | |
| tree | 07873952b5f3f7efae06b3045692e2d90bd45a58 /src/game-server/testing.cpp | |
| parent | 203ed8e40105c17d300b12ee461327cb4416acf2 (diff) | |
Robustified code with respect to insertion failures.
Diffstat (limited to 'src/game-server/testing.cpp')
| -rw-r--r-- | src/game-server/testing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
