Selaa lähdekoodia

:bug: fixed asset location logging

Felix Bytow 1 vuosi sitten
vanhempi
sitoutus
e56d4ad0b6
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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());