Added reasons to assertions
This commit is contained in:
@ -55,7 +55,7 @@ namespace Dawn {
|
||||
template<class T>
|
||||
T * addComponent() {
|
||||
auto component = new T(this);
|
||||
assertNotNull(component);
|
||||
assertNotNull(component, "SceneItem::addComponent: Component could not be created (Memory filled?)");
|
||||
this->components.push_back(component);
|
||||
return component;
|
||||
}
|
||||
|
Reference in New Issue
Block a user