summaryrefslogtreecommitdiffstats
path: root/src/game-server/mapreader.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-05-06 00:06:01 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-05-06 00:09:26 +0200
commit656e385f2ec2b5d855948569005ba14d2f244d8f (patch)
tree2033327a6c77e553eaf0174227afb0c8dac81592 /src/game-server/mapreader.cpp
parent0a3118a851540c2ad4048e3ff5f11d812f667043 (diff)
downloadmanaserv-656e385f2ec2b5d855948569005ba14d2f244d8f.tar.gz
manaserv-656e385f2ec2b5d855948569005ba14d2f244d8f.tar.xz
manaserv-656e385f2ec2b5d855948569005ba14d2f244d8f.zip
Fixed type of returned value from MapReader::readMap
GCC 4.7 warns about this, yay.
Diffstat (limited to 'src/game-server/mapreader.cpp')
-rw-r--r--src/game-server/mapreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/mapreader.cpp b/src/game-server/mapreader.cpp
index ca1b5cf..af40e56 100644
--- a/src/game-server/mapreader.cpp
+++ b/src/game-server/mapreader.cpp
@@ -42,7 +42,7 @@ Map *MapReader::readMap(const std::string &filename)
if (!rootNode || !xmlStrEqual(rootNode->name, BAD_CAST "map"))
{
LOG_ERROR("Error: Not a map file (" << filename << ")!");
- return false;
+ return 0;
}
return readMap(rootNode);