ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
125 stars 30 forks source link

Fix Crash when iPathId is INVALID_MOVEPATH_ID #282

Closed 0Z0SK0 closed 1 year ago

0Z0SK0 commented 1 year ago

https://github.com/ziggi/FCNPC/issues/266

ziggi commented 1 year ago

I don't think that it's actually a fix.

GetPoint calls IsPointValid function witch validates path and point.

https://github.com/ziggi/FCNPC/blob/dc39c0cea61b9afaf859f761f3856872aff3e74d/src/CMovePath.cpp#L88-L95

https://github.com/ziggi/FCNPC/blob/dc39c0cea61b9afaf859f761f3856872aff3e74d/src/CMovePath.cpp#L79-L86

https://github.com/ziggi/FCNPC/blob/dc39c0cea61b9afaf859f761f3856872aff3e74d/src/CMovePath.cpp#L39-L42