File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
includes/FastEngine/network Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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>
650650void 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}
655655template <class T >
656656void 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)
You can’t perform that action at this time.
0 commit comments