diff --git a/changelog/snippets/fix.6335.md b/changelog/snippets/fix.6335.md new file mode 100644 index 0000000000..19789af9f9 --- /dev/null +++ b/changelog/snippets/fix.6335.md @@ -0,0 +1 @@ +AI - Fixed a bug with recording a platoon's plan and certain other platoon related logic \ No newline at end of file diff --git a/lua/platoon.lua b/lua/platoon.lua index 6e78820ad2..a3a0f70caa 100644 --- a/lua/platoon.lua +++ b/lua/platoon.lua @@ -192,7 +192,7 @@ Platoon = Class(moho.platoon_methods) { ---@param self Platoon ---@param plan? string SetAIPlan = function(self, plan) - if not plan or self[plan] then return end + if not (plan or self[plan]) then return end if self.AIThread then self.AIThread:Destroy() end