From 3adf97b1b874dd02be9c3368d0473ff923a0ae3b Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 11 Aug 2024 18:40:35 +0300 Subject: [PATCH] fix WorldFiles forward declaration --- src/content/ContentLUT.cpp | 3 ++- src/content/ContentLUT.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content/ContentLUT.cpp b/src/content/ContentLUT.cpp index b39dc21b..8e670152 100644 --- a/src/content/ContentLUT.cpp +++ b/src/content/ContentLUT.cpp @@ -27,7 +27,8 @@ static constexpr size_t get_entries_count( std::shared_ptr ContentLUT::create( const std::shared_ptr& worldFiles, - const fs::path& filename, const Content* content + const fs::path& filename, + const Content* content ) { auto worldInfo = worldFiles->readWorldInfo(); if (!worldInfo.has_value()) { diff --git a/src/content/ContentLUT.hpp b/src/content/ContentLUT.hpp index 83c15415..f0b92c07 100644 --- a/src/content/ContentLUT.hpp +++ b/src/content/ContentLUT.hpp @@ -17,7 +17,7 @@ struct contententry { std::string name; }; -struct WorldFiles; +class WorldFiles; template class ContentUnitLUT {