mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-05 12:15:34 +00:00
fixed ctor of nestedwrapper (missing initialization of member data field)
This commit is contained in:
parent
1ff8abb240
commit
0017fc68ef
2 changed files with 5 additions and 3 deletions
|
@ -20,7 +20,8 @@ namespace CSMWorld
|
|||
|
||||
public:
|
||||
|
||||
NestedTableWrapper(const NestedTable& nestedTable) {}
|
||||
NestedTableWrapper(const NestedTable& nestedTable)
|
||||
: mNestedTable(nestedTable) {}
|
||||
|
||||
NestedTable getNestedTable() const
|
||||
{
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#include "refidadapterimp.hpp"
|
||||
#include "nestedtablewrapper.hpp"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <components/esm/loadcont.hpp>
|
||||
#include "nestedtablewrapper.hpp"
|
||||
|
||||
CSMWorld::PotionRefIdAdapter::PotionRefIdAdapter (const InventoryColumns& columns,
|
||||
const RefIdColumn *autoCalc)
|
||||
|
@ -315,7 +316,7 @@ void CSMWorld::ContainerRefIdAdapter::setNestedTable(const RefIdColumn* column,
|
|||
Record<ESM::Container>& record = dynamic_cast<Record<ESM::Container>&> (
|
||||
data.getRecord (RefIdData::LocalIndex (index, UniversalId::Type_Container)));
|
||||
|
||||
record.get().mInventory.mList = dynamic_cast<const NestedTableWrapper<std::vector<ESM::ContItem> >&>(nestedTable).getNestedTable();
|
||||
record.get().mInventory.mList = (dynamic_cast<const NestedTableWrapper<std::vector<ESM::ContItem> >&>(nestedTable)).getNestedTable();
|
||||
}
|
||||
|
||||
CSMWorld::NestedTableWrapperBase CSMWorld::ContainerRefIdAdapter::nestedTable (const RefIdColumn* column,
|
||||
|
|
Loading…
Reference in a new issue