Added a "gotoend" cheat to put Tux near the end of the level.
[supertux.git] / src / tilemap.cpp
index 4b7e123..a50bee3 100644 (file)
@@ -263,9 +263,9 @@ Tile*
 TileMap::get_tile(int x, int y) const
 {
   if(x < 0 || x >= width || y < 0 || y >= height)
-    return &tilemanager->get(0);
+    return tilemanager->get(0);
 
-  return &tilemanager->get(tiles[y*width + x].id);
+  return tilemanager->get(tiles[y*width + x].id);
 }
 
 Tile*