stupid pointer not initialized error made the server crash when a second person was connecting to it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13288 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
2567602ef3
commit
5c3251e797
@ -58,6 +58,7 @@ Event::Event(ENetEvent* event)
|
||||
|
||||
std::vector<STKPeer*> peers = NetworkManager::getInstance()->getPeers();
|
||||
peer = new STKPeer*;
|
||||
*peer = NULL;
|
||||
for (unsigned int i = 0; i < peers.size(); i++)
|
||||
{
|
||||
if (peers[i]->m_peer == event->peer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user