mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-28 23:16:15 -04:00
Minor fixes including removing <> from make_pair usage and using explicit conversions where required by the explicit constructor flags
Now builds/runs using c++11
This commit is contained in:
@@ -6543,7 +6543,7 @@ jlongArray JNICALL ScriptMethodsObjectInfoNamespace::getAllWornItems(JNIEnv *env
|
||||
{
|
||||
SlottedContainmentProperty::SlotArrangement const slots = slottedContainment->getSlotArrangement(slottedContainment->getCurrentArrangement()); // Get the old arrangement
|
||||
for(unsigned int j = 0; j < slots.size(); ++j)
|
||||
wornObjects.insert(std::make_pair<SlotId, const ServerObject*>(slots[j], item));
|
||||
wornObjects.insert(std::make_pair(slots[j], item));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6586,7 +6586,7 @@ jlongArray JNICALL ScriptMethodsObjectInfoNamespace::getAllWornItems(JNIEnv *env
|
||||
if(!slotOccupied)
|
||||
{
|
||||
for(unsigned int j = 0; j < slots.size(); ++j)
|
||||
wornObjects.insert(std::make_pair<SlotId, const ServerObject*>(slots[j], item));
|
||||
wornObjects.insert(std::make_pair(slots[j], item));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user