stuff
This commit is contained in:
parent
f241c5aa9a
commit
1af62d6484
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user