Permalink
Browse files

Fix crash on context lost (am silly)

  • Loading branch information...
UnknownShadow200 committed Nov 26, 2018
1 parent 41f68cc commit b11d5185e86aee8595f5abefa8c4dffd945eea42
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ServerConnection.c
@@ -547,6 +547,7 @@ static void ServerConnection_Init(void) {
MPConnection_Init();
}

Gfx_LostContextFunction = ServerConnection_Tick;
ScheduledTask_Add(GAME_NET_TICKS, ServerConnection_Tick);
String_AppendConst(&ServerConnection_AppName, PROGRAM_APP_NAME);
}
@@ -560,7 +561,6 @@ static void ServerConnection_Free(void) {
Socket_Close(net_socket);
ServerConnection_Disconnected = true;
}
Gfx_LostContextFunction = ServerConnection_Tick;
}

struct IGameComponent ServerConnection_Component = {

0 comments on commit b11d518

Please sign in to comment.