mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 02:09:59 +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()
|
LuaComponent::~LuaComponent()
|
||||||
{
|
{
|
||||||
if(component && component->GetParentWindow())
|
if (component)
|
||||||
component->GetParentWindow()->RemoveComponent(component);
|
{
|
||||||
delete component;
|
if (component->GetParentWindow())
|
||||||
|
component->GetParentWindow()->RemoveComponent(component);
|
||||||
|
delete component;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user