Skip to content

Commit

Permalink
reenable forceequip
Browse files Browse the repository at this point in the history
  • Loading branch information
ab9rf committed Oct 4, 2024
1 parent ac5da59 commit 015f760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if(BUILD_SUPPORTED)
#dfhack_plugin(fixveins fixveins.cpp)
dfhack_plugin(flows flows.cpp)
#dfhack_plugin(follow follow.cpp)
#dfhack_plugin(forceequip forceequip.cpp)
dfhack_plugin(forceequip forceequip.cpp)
#dfhack_plugin(generated-creature-renamer generated-creature-renamer.cpp)
dfhack_plugin(getplants getplants.cpp)
dfhack_plugin(hotkeys hotkeys.cpp LINK_LIBRARIES lua)
Expand Down
2 changes: 1 addition & 1 deletion plugins/forceequip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static bool moveToInventory(MapExtras::MapCache &mc, df::item *item, df::unit *u
return false;
}

if (!Items::moveToInventory(mc, item, unit, df::unit_inventory_item::Worn, bpIndex))
if (!Items::moveToInventory(item, unit, df::unit_inventory_item::Worn, bpIndex))
{
if (verbose) { Core::printerr("\nEquipping failed - failed to retrieve item from its current location/container/inventory. Please move it to the ground and try again.\n"); }
return false;
Expand Down

0 comments on commit 015f760

Please sign in to comment.