Nopch/warning fixes

This commit is contained in:
Shauren
2018-04-27 20:29:01 +02:00
parent 24d30dab84
commit 45b2492aa0
4 changed files with 9 additions and 10 deletions

View File

@@ -266,8 +266,7 @@ namespace VMAP
FILE* rf = fopen(fullname.c_str(), "rb");
if (!rf)
return false;
/// @todo check magic number when implemented...
char tiled;
char chunk[8];
if (!readChunk(rf, chunk, VMAP_MAGIC, 8))
{
@@ -289,7 +288,7 @@ namespace VMAP
//=========================================================
bool StaticMapTree::InitMap(const std::string &fname, VMapManager2* vm)
bool StaticMapTree::InitMap(std::string const& fname)
{
TC_LOG_DEBUG("maps", "StaticMapTree::InitMap() : initializing StaticMapTree '%s'", fname.c_str());
bool success = false;