aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/Map.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-12-07 16:23:55 +0100
committerShauren <shauren.trinity@gmail.com>2020-12-08 18:16:47 +0100
commit7a406db50626ba9e9a64c8c3d9b6e5b7310ac527 (patch)
tree2003395f4b837acbf5e867af90614ecba7a55ab5 /src/server/game/Maps/Map.cpp
parent96d340f70ccef57fad177a24ca099055d7dce04d (diff)
Core/Collision: Fixed false positive errors in console about vmap loading
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
-rw-r--r--src/server/game/Maps/Map.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp
index bd844ac6329..e0fb4370fea 100644
--- a/src/server/game/Maps/Map.cpp
+++ b/src/server/game/Maps/Map.cpp
@@ -190,6 +190,10 @@ bool Map::ExistVMap(uint32 mapid, int gx, int gy)
TC_LOG_ERROR("maps", "VMap file '%s' couldn't be loaded", (sWorld->GetDataPath() + "vmaps/" + name).c_str());
TC_LOG_ERROR("maps", "This is because the version of the VMap file and the version of this module are different, please re-extract the maps with the tools compiled with this module.");
return false;
+ case VMAP::LoadResult::ReadFromFileFailed:
+ TC_LOG_ERROR("maps", "VMap file '%s' couldn't be loaded", (sWorld->GetDataPath() + "vmaps/" + name).c_str());
+ TC_LOG_ERROR("maps", "This is because VMAP files are corrupted, please re-extract the maps with the tools compiled with this module.");
+ return false;
}
}
}