Correct try-parse

This commit is contained in:
wincent 2024-05-24 15:10:38 +02:00
parent 7845131649
commit b8d610987f

View File

@ -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.");