瀏覽代碼

:bug: fixed asset location logging

Felix Bytow 1 年之前
父節點
當前提交
e56d4ad0b6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      game/AssetManager.cxx

+ 2 - 2
game/AssetManager.cxx

@@ -32,8 +32,8 @@ AssetManager::AssetManager(SDLRenderer& renderer)
     throw std::runtime_error("Assets directory not found.");
     throw std::runtime_error("Assets directory not found.");
   }
   }
 
 
-  auto const asset_directory = *it;
-  SDL_Log("Loading assets from %s.", asset_directory.c_str());
+  auto const& asset_directory = *it;
+  SDL_Log("Loading assets from %s.", asset_directory.string().c_str());
   total_assets_ = std::distance(fs::directory_iterator(asset_directory),
   total_assets_ = std::distance(fs::directory_iterator(asset_directory),
       fs::directory_iterator());
       fs::directory_iterator());