Skip to content

Commit 2396fe5

Browse files
committed
NetworkTypeVector<T>: fix missing .get() on std::shared_ptr
1 parent 66b24d6 commit 2396fe5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

includes/FastEngine/network/C_networkType.inl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ void NetworkTypeVector<T>::forceCheckClient(Identity const& id)
609609
if (clientData != nullptr)
610610
{
611611
clientData->_config.set(CLIENTCONFIG_MODIFIED_FLAG);
612-
auto* events = static_cast<typename RecordedVector<T>::EventQueue*>(clientData->_data);
612+
auto* events = static_cast<typename RecordedVector<T>::EventQueue*>(clientData->_data.get());
613613
events->clear();
614614
}
615615
}
@@ -620,7 +620,7 @@ void NetworkTypeVector<T>::forceUncheckClient(Identity const& id)
620620
if (clientData != nullptr)
621621
{
622622
clientData->_config.unset(CLIENTCONFIG_MODIFIED_FLAG);
623-
auto* events = static_cast<typename RecordedVector<T>::EventQueue*>(clientData->_data);
623+
auto* events = static_cast<typename RecordedVector<T>::EventQueue*>(clientData->_data.get());
624624
events->clear();
625625
}
626626
}
@@ -650,12 +650,12 @@ template<class T>
650650
void NetworkTypeVector<T>::createClientData(std::shared_ptr<void>& ptr) const
651651
{
652652
ptr = std::shared_ptr<void>(new typename RecordedVector<T>::EventQueue(),
653-
typename RecordedVector<T>::DataDeleter());
653+
typename NetworkTypeVector<T>::DataDeleter());
654654
}
655655
template<class T>
656656
void NetworkTypeVector<T>::applyClientData(std::shared_ptr<void>& ptr) const
657657
{
658-
auto* events = static_cast<typename RecordedVector<T>::EventQueue*>(ptr);
658+
auto* events = static_cast<typename RecordedVector<T>::EventQueue*>(ptr.get());
659659

660660
bool const clearFirst = this->g_typeSource->getEventQueue().front()._type == RecordedEventTypes::REMOVE_ALL;
661661
if (clearFirst)

0 commit comments

Comments
 (0)