mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Fixed bug with name incrementation not working
This commit is contained in:
@@ -206,7 +206,7 @@ namespace Nuake {
|
||||
}
|
||||
|
||||
std::string entityName;
|
||||
if (GetEntity(name) != Entity())
|
||||
if (GetEntity(name) == Entity())
|
||||
{
|
||||
entityName = name;
|
||||
}
|
||||
@@ -217,7 +217,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