mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +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