Merge pull request #45 from antopilo/NK-16-physics-scripting-module
Nk 16 physics scripting module
This commit is contained in:
@@ -215,7 +215,7 @@ namespace Nuake {
|
||||
}
|
||||
|
||||
std::string entityName;
|
||||
if (GetEntity(name) != Entity())
|
||||
if (GetEntity(name) == Entity())
|
||||
{
|
||||
entityName = name;
|
||||
}
|
||||
@@ -226,7 +226,7 @@ namespace Nuake {
|
||||
{
|
||||
const std::string& entityEnumName = name + std::to_string(i);
|
||||
const auto& entityId = GetEntity(entityEnumName).GetHandle();
|
||||
if (entityId != -1)
|
||||
if (entityId == -1)
|
||||
{
|
||||
entityName = entityEnumName;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user