mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-04 06:32:00 +00:00 
			
		
		
		
	Correct try-parse
This commit is contained in:
		@@ -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.");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user