Implement ZoneLoading in ZoneLoading component class

This commit is contained in:
Jan
2019-09-26 22:35:59 +02:00
parent 36cc8d3065
commit d662e5dcfa
3 changed files with 43 additions and 4 deletions

View File

@ -79,7 +79,8 @@ int main(const int argc, const char** argv)
{
const std::string& zonePath = arguments[argIndex];
if(!ZoneLoading::LoadZone(zonePath))
Zone* zone = ZoneLoading::LoadZone(zonePath);
if(zone == nullptr)
{
printf("Failed to load zone '%s'.\n", zonePath.c_str());
return 1;