[Server] Move baseEvent from Networking.cpp to class as member

coverity_scan^2
Koncord 8 years ago
parent 7065569f9b
commit 868c837aa0

@ -22,7 +22,6 @@ using namespace mwmp;
using namespace std; using namespace std;
Networking *Networking::sThis = 0; Networking *Networking::sThis = 0;
BaseEvent baseEvent = BaseEvent();
Networking::Networking(RakNet::RakPeerInterface *peer) Networking::Networking(RakNet::RakPeerInterface *peer)
{ {

@ -49,6 +49,7 @@ namespace mwmp
private: private:
std::string serverPassword; std::string serverPassword;
static Networking *sThis; static Networking *sThis;
BaseEvent baseEvent;
RakNet::RakPeerInterface *peer; RakNet::RakPeerInterface *peer;
RakNet::BitStream bsOut; RakNet::BitStream bsOut;
TPlayers *players; TPlayers *players;

Loading…
Cancel
Save