game: clamp money in case overflowed
This commit is contained in:
parent
ffffca3fd9
commit
0842dd7b4e
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ void MessageDispatcher::netMsgMoney () {
|
||||||
if (m_args.length () < min || !m_bot) {
|
if (m_args.length () < min || !m_bot) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_bot->m_moneyAmount = m_args[money].long_;
|
m_bot->m_moneyAmount = cr::clamp (m_args[money].long_, 160000, INT32_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessageDispatcher::netMsgStatusIcon () {
|
void MessageDispatcher::netMsgStatusIcon () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue