[Bug] Crash bug in EQS

Got a crash bug in EQS system for the AI. Sent a repro case to Mieszko, but I figured it’d be useful to get you guys to log a bug here too. I assume they will get put into bugtracker to assign someone to it.

Bug is basically that if you have two copies of an EQS in a BT that run, one of them with different return types (i.e. single, best of top 5% etc) then eventually you get a crash because one of them becomes invalid (to be specific, the template that is used in PrepareQueryInstance is invalid. I am assuming one of them gets GC’d for some reason.

As I say, a repro case has been sent to Mieszko to have a look at. You can find it here:

Ta!

Phil.

Found and fixed the bug. It boils down to a wrong way EQS queries were duplicated by EQS manager. The fix should make it to the main branch (and therefore to the github repo) within a week.

Thanks for the solid repro @zoombapup!

Cheers,

–mieszko