nathansttt / hog2

Pathfinding and search testbed/visualization suite. Current code is in PDB-refactor branch.
MIT License
111 stars 54 forks source link

Changed openLoc to index KeyChanged call in Remove #56

Closed lior8 closed 2 years ago

lior8 commented 2 years ago

In Remove() there are two index variables (amongst others variables):

The function KeyChanged() expects the index of the element whose key was changed. Remove() calls KeyChanged(), but calls it with openLoc instead of index, which is what should be sent. Therefore, I changed the call to use index instead of openLoc.