mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
[Crash] Crash fix where invalid input to #heromodel would crash zone (#2937)
This commit is contained in:
@@ -21,7 +21,7 @@ void command_heromodel(Client *c, const Seperator *sep)
|
||||
t = c->GetTarget();
|
||||
}
|
||||
|
||||
auto hero_forge_model = std::stoul(sep->arg[1]);
|
||||
auto hero_forge_model = Strings::IsNumber(sep->arg[1]) ? std::stoul(sep->arg[1]) : 0;
|
||||
|
||||
if (arguments > 1) {
|
||||
auto slot = static_cast<uint8>(std::stoul(sep->arg[2]));
|
||||
|
||||
Reference in New Issue
Block a user