mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-27 17:59:49 +02:00
Actually fix the bug, see previous commit
This commit is contained in:
@@ -83,8 +83,11 @@ int LuaComponent::visible(lua_State * l)
|
||||
|
||||
LuaComponent::~LuaComponent()
|
||||
{
|
||||
if(component && component->GetParentWindow())
|
||||
component->GetParentWindow()->RemoveComponent(component);
|
||||
delete component;
|
||||
if (component)
|
||||
{
|
||||
if (component->GetParentWindow())
|
||||
component->GetParentWindow()->RemoveComponent(component);
|
||||
delete component;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user