This commit is contained in:
OusmBlueNinja 2024-12-28 13:06:42 -06:00
parent f241c5aa9a
commit 1af62d6484
2 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,7 @@ private:
LuaManager m_LuaManager; // Instance of LuaManager LuaManager m_LuaManager; // Instance of LuaManager
std::string m_LastErrorMessage; // To prevent duplicate error logs std::string m_LastErrorMessage; // To prevent duplicate error logs
// Disallow copying // block copying
ScriptComponent(const ScriptComponent&) = delete; ScriptComponent(const ScriptComponent&) = delete;
ScriptComponent& operator=(const ScriptComponent&) = delete; ScriptComponent& operator=(const ScriptComponent&) = delete;

View File

@ -75,7 +75,6 @@ public:
if (it != m_AssetMap.end()) if (it != m_AssetMap.end())
{ {
// Debug: Log the variant type // Debug: Log the variant type
DEBUG_PRINT("[AssetManager] Found asset in map.");
if (std::holds_alternative<T>(it->second)) if (std::holds_alternative<T>(it->second))
{ {
return std::get<T>(it->second); return std::get<T>(it->second);
@ -99,7 +98,7 @@ public:
} }
else else
{ {
return 0; // For non-pointer types return 0; // For non-pointer
} }
} }