Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -407,7 +407,7 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, const EntityItemProperties& · 406 unmodified lines | ||
| 407 | 407 | // return QUuid(); |
| 408 | 408 | // } |
| 409 | 409 | |
| 410 | − bool entityFound = false; | |
| 410 | + bool entityFound { false }; | |
| 411 | 411 | _entityTree->withReadLock([&] { |
| 412 | 412 | EntityItemPointer entity = _entityTree->findEntityByEntityItemID(entityID); |
| 413 | 413 | if (entity) { |
| @@ -469,7 +469,7 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, const EntityItemProperties& · 55 unmodified lines | ||
| 469 | 469 | if (entityFound) { |
| 470 | 470 | queueEntityMessage(PacketType::EntityEdit, entityID, properties); |
| 471 | 471 | } else { |
| 472 | − qDebug() << "warning: attempted edit on unknown entity: " << id; | |
| 472 | + qCWarning(entities) << "attempted edit on unknown entity: " << id; | |
| 473 | 473 | } |
| 474 | 474 | return id; |
| 475 | 475 | } |