Skip to content

Commit

Permalink
Fix exporting of cse_alife_inventory_item upgrades methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Dec 20, 2024
1 parent 4f61ae7 commit 28380f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrServerEntities/xrServer_Objects_ALife_Items_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ SCRIPT_EXPORT(CSE_ALifeInventoryItem, (),
//.def(constructor<pcstr>())
.def("has_upgrade", +[](CSE_ALifeInventoryItem* ta, pcstr str)
{
ta->add_upgrade(str);
return ta->has_upgrade(str);
})
.def("add_upgrade", +[](CSE_ALifeInventoryItem* ta, pcstr str)
{
return ta->has_upgrade(str);
ta->add_upgrade(str);
})
];
});
Expand Down

0 comments on commit 28380f1

Please sign in to comment.