Fix crash in ChooseRpgTargetAction

This commit is contained in:
郑佩茹
2022-09-30 18:20:42 -06:00
parent 0b599de6bd
commit 5cfac7bf71

View File

@@ -132,7 +132,7 @@ bool ChooseRpgTargetAction::Execute(Event event)
continue;
GuidPosition guidP(unit);
if (!guidP)
if (!guidP || !guidP.getMap())
continue;
float priority = 1;