From 90a1953d05060a04f360bd63ffb87af1e0531388 Mon Sep 17 00:00:00 2001 From: krion Date: Sun, 22 Aug 2004 19:41:04 +0000 Subject: Fix build with gcc-3.4 --- games/bombermaze/files/patch-src_map.cc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 games/bombermaze/files/patch-src_map.cc (limited to 'games/bombermaze') diff --git a/games/bombermaze/files/patch-src_map.cc b/games/bombermaze/files/patch-src_map.cc new file mode 100644 index 000000000000..0e5e66185352 --- /dev/null +++ b/games/bombermaze/files/patch-src_map.cc @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- src/map.cc.orig Sun Feb 25 08:50:07 2001 ++++ src/map.cc Sun Aug 22 21:25:12 2004 +@@ -1587,7 +1587,7 @@ + width = w; + height = h; + +- map = new (char *)[width]; ++ map = new char * [width]; + + unsigned i; + for (i = 0; i < width; i++) +@@ -1728,7 +1728,7 @@ + + void GameMap::allocate_map(MapSquare ***m) + { +- *m = new (MapSquare *)[width]; ++ *m = new MapSquare * [width]; + int i; + for (i = 0; i < width; i++) + { -- cgit