From 10072aa9fcad13411840d08ffc2a7262cb586958 Mon Sep 17 00:00:00 2001 From: Salanto Date: Wed, 3 Mar 2021 01:49:10 +0100 Subject: [PATCH] Corrected datatype in header and function --- include/server.h | 2 +- src/server.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/server.h b/include/server.h index 749e20a..d70ef34 100644 --- a/include/server.h +++ b/include/server.h @@ -50,7 +50,7 @@ class Server : public QObject { void broadcast(AOPacket packet, int area_index); void broadcast(AOPacket packet); QString getServerName(); - quint32 getDiceValue(QString value_type); + int getDiceValue(QString value_type); QVector clients; diff --git a/src/server.cpp b/src/server.cpp index 3d4b4f2..7889acc 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -155,7 +155,7 @@ QString Server::getServerName() return server_name; } -quint32 Server::getDiceValue(QString value_type) +int Server::getDiceValue(QString value_type) { QSettings settings("config/config.ini", QSettings::IniFormat);