summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 5b4bb03..8cff53a 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -173,7 +173,8 @@ void World::AddEntity(Entity entity)
entitiesMutex.lock();
for (auto& it : entities) {
if (it.entityId == entity.entityId) {
- LOG(ERROR) << "Adding already existing entity" << entity.entityId;
+ LOG(ERROR) << "Adding already existing entity: " << entity.entityId;
+ entitiesMutex.unlock();
return;
}
}