Skip to content

Commit

Permalink
fix param type
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteTimesSix committed Jun 21, 2023
1 parent c9cbadb commit 921cacf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/utilities/WeaponAssingment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,11 @@ public static bool trySwapToMoreAccurateRangedWeapon(Pawn pawn, LocalTargetInfo
}

[Obsolete("use DropSidearm(Pawn pawn, ThingWithComps weapon, bool intentionalDrop, bool unmemorise) instead")]
public static void dropSidearm(Pawn pawn, ThingWithComps weapon, bool intentionalDrop)
public static void dropSidearm(Pawn pawn, Thing weapon, bool intentionalDrop)
{
DropSidearm(pawn, weapon, intentionalDrop, false);
if (!(weapon is ThingWithComps weaponTyped))
return;
DropSidearm(pawn, weaponTyped, intentionalDrop, false);
}

public static void DropSidearm(Pawn pawn, ThingWithComps weapon, bool intentionalDrop, bool unmemorise)
Expand Down
Binary file modified v1.4/Assemblies/SimpleSidearms.dll
Binary file not shown.

0 comments on commit 921cacf

Please sign in to comment.