bot: some fixes to radio handling (ref #560)

This commit is contained in:
jeefo 2024-05-07 22:01:57 +03:00
commit 6663cdab7b
No known key found for this signature in database
GPG key ID: D696786B81B667C8
4 changed files with 12 additions and 9 deletions

View file

@ -227,7 +227,7 @@ void MessageDispatcher::netMsgMoney () {
if (amount < 0) {
amount = 800;
}
else if (amount > INT32_MAX) {
else if (amount >= INT32_MAX) {
amount = 16000;
}
m_bot->m_moneyAmount = amount;