Skip to content

Commit

Permalink
NPCBots: Fix build 4
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Oct 31, 2024
1 parent 47ea7d2 commit 8707260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/AI/NpcBots/botwanderful.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ WanderNode::node_lltype WanderNode::GetShortestPathLinks(WanderNode const* targe

NodeLinkList retlist;
if (this == target)
retlist.emplace_back(const_cast<WanderNode*>(this), 10000);
retlist.push_back(WanderNodeLink{ .wp = const_cast<WanderNode*>(this), .weight = 10000 });
else
{
std::list<std::pair<uint32 /*level*/, WanderNodeLink const*>> validLinks;
Expand Down

0 comments on commit 8707260

Please sign in to comment.