mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 09:49:41 +02:00
Update reinterpret_cast call that should be dynamic_cast
This commit is contained in:
parent
84796b20e0
commit
4d9b28688d
1 changed files with 3 additions and 2 deletions
|
@ -1413,8 +1413,9 @@ void DomainServer::processICEPingReplyPacket(QSharedPointer<NLPacket> packet) {
|
|||
}
|
||||
|
||||
void DomainServer::processNodeJSONStatsPacket(QSharedPointer<NLPacket> packet, SharedNodePointer sendingNode) {
|
||||
if (sendingNode->getLinkedData()) {
|
||||
reinterpret_cast<DomainServerNodeData*>(sendingNode->getLinkedData())->processJSONStatsPacket(*packet);
|
||||
auto nodeData = dynamic_cast<DomainServerNodeData*>(sendingNode->getLinkedData());
|
||||
if (nodeData) {
|
||||
nodeData->processJSONStatsPacket(*packet);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue