freemoney type update (#1146)

Changed freemoney command to parse 64 bit integers as opposed to 32 bit
This commit is contained in:
TAHuntling 2023-07-19 11:07:41 -05:00 committed by GitHub
parent 3e3148e910
commit 11b0097488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1443,7 +1443,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
} }
if ((chatCommand == "freemoney" && entity->GetGMLevel() >= eGameMasterLevel::DEVELOPER) && args.size() == 1) { if ((chatCommand == "freemoney" && entity->GetGMLevel() >= eGameMasterLevel::DEVELOPER) && args.size() == 1) {
int32_t money; int64_t money;
if (!GeneralUtils::TryParse(args[0], money)) { if (!GeneralUtils::TryParse(args[0], money)) {
ChatPackets::SendSystemMessage(sysAddr, u"Invalid money."); ChatPackets::SendSystemMessage(sysAddr, u"Invalid money.");