From 892b9732751b64c2016ba476801e1fe4ed4e750f Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 16 Sep 2017 20:48:19 +0500 Subject: 2017-09-16 --- src/World.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/World.cpp') 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; } } -- cgit v1.2.3