Files
Bubberstation/code/controllers/subsystem/movement
SkyratBot c767a149a4 [MIRROR] Initializes on_finish_callbacks in the JPS move loop [MDB IGNORE] (#24788)
* Initializes on_finish_callbacks in the JPS move loop (#79505)

## About The Pull Request

The on_finish_callbacks list in `/datum/move_loop/has_target/jps` was
not initialized. Usually, when you add something to an uninitialized
list, it gets initialized and the item gets added to it. However, the
`CALLBACK` wrapper is around `new /datum/callback`, this fails.

This meant on_finish_callback was not a list, therefore at the end of
pathfinding, its contents could not be iterated and invoked. This PR
fixes this problem by initializing the list.

## Why It's Good For The Game

Closes #79383
Blob minions rally and punch again.

## Changelog

🆑
fix: Basic mobs using JPS can move again
/🆑

* Initializes on_finish_callbacks in the JPS move loop

---------

Co-authored-by: Profakos <profakos@gmail.com>
2023-11-04 20:58:34 -04:00
..