mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-14 11:46:56 +02:00
Fixed calls to addingWearable() and deletingWearable().
The calls used a parameter type of QUuid instead of EntityItemID. This resulted in the following warnings in the log: [04/01 18:16:11.012] [WARNING] [default] [53296] QMetaObject::invokeMethod: No such method EntityScriptingInterface::addingWearable(QUuid) [04/01 18:16:11.012] [WARNING] [default] [53296] Candidates are: [04/01 18:16:11.012] [WARNING] [default] [53296] addingWearable(EntityItemID)
This commit is contained in:
parent
6ccf16dfe5
commit
0b822b2cbc
1 changed files with 2 additions and 2 deletions
|
@ -1101,13 +1101,13 @@ void EntityScriptingInterface::handleEntityScriptCallMethodPacket(QSharedPointer
|
|||
|
||||
void EntityScriptingInterface::onAddingEntity(EntityItem* entity) {
|
||||
if (entity->isWearable()) {
|
||||
QMetaObject::invokeMethod(this, "addingWearable", Q_ARG(QUuid, entity->getEntityItemID()));
|
||||
QMetaObject::invokeMethod(this, "addingWearable", Q_ARG(EntityItemID, entity->getEntityItemID()));
|
||||
}
|
||||
}
|
||||
|
||||
void EntityScriptingInterface::onDeletingEntity(EntityItem* entity) {
|
||||
if (entity->isWearable()) {
|
||||
QMetaObject::invokeMethod(this, "deletingWearable", Q_ARG(QUuid, entity->getEntityItemID()));
|
||||
QMetaObject::invokeMethod(this, "deletingWearable", Q_ARG(EntityItemID, entity->getEntityItemID()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue