probably initializing the timers would be a good idea

This commit is contained in:
in1tiate 2021-03-06 00:00:50 -06:00
parent 49bad39ec1
commit e65caf2a59
2 changed files with 5 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;