try to add death timer

This commit is contained in:
Askou
2021-06-17 09:52:45 +02:00
parent 5a948bca46
commit 1261476a00
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ namespace WAL
{
const std::type_index &type = typeid(T);
if (this->hasComponent(type))
throw DuplicateError("A component of the type \"" + std::string(type.name()) + "\" already exists.");
throw DuplicateError("A component of the type \"" + std::string(type.name()) + "\" already exists on " + this->_name + ".");
this->_components[type] = std::make_unique<T>(*this, TypeHolder<TNested>()..., std::forward<Types>(params)...);
if (this->_notifyScene)
this->_componentAdded(type);