mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
fixed ctor of nestedwrapper (missing initialization of member data field)
This commit is contained in:
parent
1ff8abb240
commit
0017fc68ef
@ -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…
x
Reference in New Issue
Block a user