Преглед на файлове

: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.");
   }
 
-  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),
       fs::directory_iterator());