Skip to content
Snippets Groups Projects
Commit 1f679c9b authored by Ed86's avatar Ed86
Browse files

fixed error when trying to rmb sex with drafted pawn

parent 0c26bfec
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -162,6 +162,8 @@ namespace rjw
//Log.Message("targets count " + validtargets.Count());
foreach (LocalTargetInfo target in validtargets)
{
if (target.Pawn != null && target.Pawn.Drafted)
continue;
// Ensure target is reachable.
if (!pawn.CanReach(target, PathEndMode.ClosestTouch, Danger.Deadly))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment