Hacked in serverside effects

This commit is contained in:
2016-01-25 11:56:40 +01:00
parent 4245264029
commit b6fd18baed
5 changed files with 19 additions and 22 deletions
+4
View File
@@ -99,6 +99,10 @@ EntityWrapper::operator bool()
EntityWrapper EntityWrapper::firstChildByNameRecursive(const std::string& name, EntityID parent)
{
if (!this->World->ValidEntity(parent)) {
return EntityWrapper::Invalid;
}
auto itPair = this->World->GetChildren(parent);
if (itPair.first == itPair.second) {
return EntityWrapper::Invalid;