summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/network.cpp4
-rw-r--r--src/net/ea/network.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index 690ca946..7b731de3 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -103,6 +103,8 @@ Network::Network():
mState(IDLE),
mWorkerThread(0)
{
+ SDLNet_Init();
+
mMutex = SDL_CreateMutex();
mInstance = this;
}
@@ -119,6 +121,8 @@ Network::~Network()
delete[] mInBuffer;
delete[] mOutBuffer;
+
+ SDLNet_Quit();
}
bool Network::connect(const std::string &address, short port)
diff --git a/src/net/ea/network.h b/src/net/ea/network.h
index c246ab8e..741a8297 100644
--- a/src/net/ea/network.h
+++ b/src/net/ea/network.h
@@ -22,9 +22,10 @@
#ifndef EA_NETWORK_H
#define EA_NETWORK_H
-#include <map>
#include <SDL_net.h>
#include <SDL_thread.h>
+
+#include <map>
#include <string>
/**