mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-01 09:00:58 -04:00
Fix unused template argument
This commit is contained in:
parent
70e3341954
commit
131bd5c91d
@ -58,7 +58,7 @@ namespace MWMechanics
|
|||||||
template<class T>
|
template<class T>
|
||||||
void modifyBaseInventory(const std::string& actorId, const std::string& itemId, int amount)
|
void modifyBaseInventory(const std::string& actorId, const std::string& itemId, int amount)
|
||||||
{
|
{
|
||||||
ESM::NPC copy = *MWBase::Environment::get().getWorld()->getStore().get<ESM::NPC>().find(actorId);
|
T copy = *MWBase::Environment::get().getWorld()->getStore().get<T>().find(actorId);
|
||||||
for(auto& it : copy.mInventory.mList)
|
for(auto& it : copy.mInventory.mList)
|
||||||
{
|
{
|
||||||
if(Misc::StringUtils::ciEqual(it.mItem, itemId))
|
if(Misc::StringUtils::ciEqual(it.mItem, itemId))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user