Browse Source

missing files

Emagi 1 month ago
parent
commit
9ac9da15a5
2 changed files with 3 additions and 1 deletions
  1. 1 0
      EQ2/source/WorldServer/client.h
  2. 2 1
      EQ2/source/common/EQStreamFactory.cpp

+ 1 - 0
EQ2/source/WorldServer/client.h

@@ -231,6 +231,7 @@ public:
 	ZoneServer* GetZoningDestination() { return zoning_destination; }
 	Player*	GetPlayer(){ return player; }
 	EQStream*	getConnection(){ return eqs; }
+	void	setConnection(EQStream* ieqs){ eqs = ieqs; }
 
 	inline int32		GetIP()				{ return ip; }
 	inline int16		GetPort()			{ return port; }

+ 2 - 1
EQ2/source/common/EQStreamFactory.cpp

@@ -323,8 +323,9 @@ void EQStreamFactory::CheckTimeout(bool remove_all)
 				#ifdef WORLD
 				client_list.RemoveConnection(temp->second);
 				#endif
-				delete temp->second;
+				EQStream* stream = temp->second;
 				Streams.erase(temp);
+				delete stream;
 				continue;
 			}
 		}