Core/Maps: Move terrain data handling out of Map class
Port From (https://github.com/TrinityCore/TrinityCore/commit/16a06346aea16ffd6ee84081cedfdb0c75ac0b38)
This commit is contained in:
@@ -40,7 +40,10 @@ namespace Game.Maps
|
||||
|
||||
public LoadResult LoadData(string filename)
|
||||
{
|
||||
// Unload old data if exist
|
||||
UnloadData();
|
||||
|
||||
// Not return error if file not found
|
||||
if (!File.Exists(filename))
|
||||
return LoadResult.FileNotFound;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user