mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
Correct try-parse
This commit is contained in:
parent
7845131649
commit
b8d610987f
@ -236,7 +236,7 @@ namespace GMZeroCommands {
|
||||
return;
|
||||
}
|
||||
|
||||
auto itemId = GeneralUtils::TryParse<int32_t>(splitArgs[1]);
|
||||
auto itemId = GeneralUtils::TryParse<LWOOBJID>(splitArgs[1]);
|
||||
|
||||
if (!itemId.has_value()) {
|
||||
ChatPackets::SendSystemMessage(sysAddr, u"Invalid item ID.");
|
||||
|
Loading…
Reference in New Issue
Block a user