mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 03:11:28 +00:00
[Crash] Fix #summon crash (#3608)
* [Crash] Summon crash fix * [Crash] Fix summon crash
This commit is contained in:
parent
68cb94b39c
commit
b5b0e53da2
@ -64,6 +64,11 @@ void command_summon(Client *c, const Seperator *sep)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!target) {
|
||||||
|
c->Message(Chat::White, "You must have a target to summon.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::White,
|
Chat::White,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
|
|||||||
@ -5114,7 +5114,7 @@ std::string Mob::GetTargetDescription(Mob* target, uint8 description_type, uint1
|
|||||||
auto d = fmt::format(
|
auto d = fmt::format(
|
||||||
"{}",
|
"{}",
|
||||||
(
|
(
|
||||||
this == target ?
|
target && this == target ?
|
||||||
self_return :
|
self_return :
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"{} ({})",
|
"{} ({})",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user