[nostalgia] Use requireTypeNameModel in place of getTypeNameModel where it makes sense

This commit is contained in:
2021-12-01 02:30:03 -06:00
parent 7aead742eb
commit e0364925a3
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ class AssetManager {
template<typename T>
AssetTypeManager<T> *getTypeManager() noexcept {
constexpr auto typeName = ox::ModelTypeName_v<T>;
constexpr auto typeName = ox::requireModelTypeName<T>();
static_assert(ox_strcmp(typeName, "") != 0, "Types must have TypeName to use AssetManager");
auto &am = m_assetTypeManagers[typeName];
if (!am) {