From 1d0c5412a9bf8dfe2fafb4c47dc6b429f6e5225f Mon Sep 17 00:00:00 2001 From: markus Date: Sat, 21 Aug 2004 08:36:09 +0000 Subject: Fix build with gcc 3.4 --- games/knights/files/patch-core.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 games/knights/files/patch-core.cpp (limited to 'games/knights') diff --git a/games/knights/files/patch-core.cpp b/games/knights/files/patch-core.cpp new file mode 100644 index 000000000000..0fe783deb901 --- /dev/null +++ b/games/knights/files/patch-core.cpp @@ -0,0 +1,26 @@ +--- knights/core.cpp.orig Sat Aug 21 10:14:24 2004 ++++ knights/core.cpp Sat Aug 21 10:28:14 2004 +@@ -90,7 +90,7 @@ + else + { + /* Use an existing internetIO */ +- (io_base*)internetioPtr = myIOMap.find(Null); ++ internetioPtr = (io_internet*)myIOMap.find(Null); + if( internetioPtr == NULL ) + { + kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl; +@@ -114,12 +114,12 @@ + } + else + { +- (io_base*)internetioPtr = myIOMap.find(ID); ++ internetioPtr = (io_internet*)myIOMap.find(ID); + if( internetioPtr == NULL ) + { + /* no io mapped to the ID yet, use the internetio */ + /* Use an existing internetIO */ +- (io_base*)internetioPtr = myIOMap.find(Null); ++ internetioPtr = (io_internet*)myIOMap.find(Null); + if( internetioPtr == NULL ) + { + kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl; -- cgit