probably initializing the timers would be a good idea
This commit is contained in:
parent
49bad39ec1
commit
e65caf2a59
@ -43,12 +43,12 @@ AreaData::AreaData(QStringList characters, QString p_name, int p_index)
|
|||||||
if (log_size == 0)
|
if (log_size == 0)
|
||||||
log_size = 500;
|
log_size = 500;
|
||||||
logger = new Logger(log_size, this);
|
logger = new Logger(log_size, this);
|
||||||
QTimer* timer1;
|
QTimer* timer1 = new QTimer();
|
||||||
timers.append(timer1);
|
timers.append(timer1);
|
||||||
QTimer* timer2;
|
QTimer* timer2 = new QTimer();
|
||||||
timers.append(timer2);
|
timers.append(timer2);
|
||||||
QTimer* timer3;
|
QTimer* timer3 = new QTimer();
|
||||||
timers.append(timer3);
|
timers.append(timer3);
|
||||||
QTimer* timer4;
|
QTimer* timer4 = new QTimer();
|
||||||
timers.append(timer4);
|
timers.append(timer4);
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ Server::Server(int p_port, int p_ws_port, QObject* parent) : QObject(parent)
|
|||||||
|
|
||||||
port = p_port;
|
port = p_port;
|
||||||
ws_port = p_ws_port;
|
ws_port = p_ws_port;
|
||||||
|
timer = new QTimer();
|
||||||
|
|
||||||
player_count = 0;
|
player_count = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user