diff --git a/src/nostalgia/core/assetmanager.hpp b/src/nostalgia/core/assetmanager.hpp index be15acdf..bdd7de61 100644 --- a/src/nostalgia/core/assetmanager.hpp +++ b/src/nostalgia/core/assetmanager.hpp @@ -170,13 +170,8 @@ class AssetManager { template AssetTypeManager *getTypeManager() noexcept { -#if __cplusplus >= 202002L - constexpr auto typeName = ox::getModelTypeName(); + constexpr auto typeName = ox::ModelTypeName_v; static_assert(ox_strcmp(typeName, "") != 0, "Types must have TypeName to use AssetManager"); -#else - const auto typeName = ox::getModelTypeName(); - oxAssert(ox_strcmp(typeName, "") != 0, "Types must have TypeName to use AssetManager"); -#endif auto &am = m_assetTypeManagers[typeName]; if (!am) { am = ox::make_unique>();