Browse Source

Merge branch 'AFXFIX4_RefcountCatch' into Jeff_Faust_Fixes

Azaezel 10 years ago
parent
commit
566a6e9fe6
1 changed files with 2 additions and 0 deletions
  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)
       if(unguaranteedPhase)
       {
       {
          evt->process(this);
          evt->process(this);
+         if (evt->getRefCount() == 0)
+            evt->incRef();
          evt->decRef();
          evt->decRef();
          if(mErrorBuffer.isNotEmpty())
          if(mErrorBuffer.isNotEmpty())
             return;
             return;