Adding some components.
This commit is contained in:
@@ -16,6 +16,7 @@ void SceneItemComponents::removeComponent(
|
||||
) {
|
||||
auto it = std::find(components.begin(), components.end(), component);
|
||||
if(it == components.end()) return; //Not found?
|
||||
it->get()->dispose();
|
||||
components.erase(it);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user