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