Skip to content

Commit

Permalink
Add nullptr initialization to pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Apr 2, 2018
1 parent 13b6108 commit 2c1d3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetworkSyncManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class ETTProtocol : public NetProtocol { // Websockets using uwebsockets sending
vector<json> newMessages;
unsigned int msgId{0};
bool error{ false };
uWS::WebSocket<uWS::CLIENT>* ws;
uWS::WebSocket<uWS::CLIENT>* ws{nullptr};
void FindJsonChart(NetworkSyncManager* n, json& ch);
int state = 0; // 0 = ready, 1 = playing, 2 = evalScreen, 3 = options, 4 = notReady(unkown reason)
public:
Expand Down

0 comments on commit 2c1d3d6

Please sign in to comment.