diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-05-06 00:06:01 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-05-06 00:09:26 +0200 |
commit | 656e385f2ec2b5d855948569005ba14d2f244d8f (patch) | |
tree | 2033327a6c77e553eaf0174227afb0c8dac81592 /src/game-server/mapreader.cpp | |
parent | 0a3118a851540c2ad4048e3ff5f11d812f667043 (diff) | |
download | manaserv-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.cpp | 2 |
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); |