diff --git a/src/area_data.cpp b/src/area_data.cpp index 5f3706e..a2d9373 100644 --- a/src/area_data.cpp +++ b/src/area_data.cpp @@ -43,12 +43,12 @@ AreaData::AreaData(QStringList characters, QString p_name, int p_index) if (log_size == 0) log_size = 500; logger = new Logger(log_size, this); - QTimer* timer1; + QTimer* timer1 = new QTimer(); timers.append(timer1); - QTimer* timer2; + QTimer* timer2 = new QTimer(); timers.append(timer2); - QTimer* timer3; + QTimer* timer3 = new QTimer(); timers.append(timer3); - QTimer* timer4; + QTimer* timer4 = new QTimer(); timers.append(timer4); } diff --git a/src/server.cpp b/src/server.cpp index e5d728e..b9acff4 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -24,6 +24,7 @@ Server::Server(int p_port, int p_ws_port, QObject* parent) : QObject(parent) port = p_port; ws_port = p_ws_port; + timer = new QTimer(); player_count = 0;