From 8707260714bd1f63462962ae1631690224031906 Mon Sep 17 00:00:00 2001 From: trickerer Date: Thu, 31 Oct 2024 19:08:49 +0700 Subject: [PATCH] NPCBots: Fix build 4 --- src/server/game/AI/NpcBots/botwanderful.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;