mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
[Crash] Crash fix where invalid input to #heromodel would crash zone (#2937)
This commit is contained in:
parent
0829bc08b8
commit
2ae795fd61
@ -21,7 +21,7 @@ void command_heromodel(Client *c, const Seperator *sep)
|
|||||||
t = c->GetTarget();
|
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) {
|
if (arguments > 1) {
|
||||||
auto slot = static_cast<uint8>(std::stoul(sep->arg[2]));
|
auto slot = static_cast<uint8>(std::stoul(sep->arg[2]));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user