diff --git a/src/server/game/AI/NpcBots/botwanderful.cpp b/src/server/game/AI/NpcBots/botwanderful.cpp index 7fd174e4918080..2c00c262f728a7 100644 --- a/src/server/game/AI/NpcBots/botwanderful.cpp +++ b/src/server/game/AI/NpcBots/botwanderful.cpp @@ -229,7 +229,7 @@ WanderNode::node_lltype WanderNode::GetShortestPathLinks(WanderNode const* targe NodeLinkList retlist; if (this == target) - retlist.emplace_back(const_cast(this), 10000); + retlist.push_back(WanderNodeLink{ .wp = const_cast(this), .weight = 10000 }); else { std::list> validLinks;