Browse Source

Merge branch 'AFXFIX4_RefcountCatch' into Jeff_Faust_Fixes

Azaezel 10 năm trước cách đây
mục cha
commit
566a6e9fe6
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Engine/source/sim/netEvent.cpp

+ 2 - 0
Engine/source/sim/netEvent.cpp

@@ -344,6 +344,8 @@ void NetConnection::eventReadPacket(BitStream *bstream)
       if(unguaranteedPhase)
       {
          evt->process(this);
+         if (evt->getRefCount() == 0)
+            evt->incRef();
          evt->decRef();
          if(mErrorBuffer.isNotEmpty())
             return;