1
0
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:
Marek Kochanowicz 2014-07-19 13:08:28 +02:00
parent 1ff8abb240
commit 0017fc68ef
2 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,8 @@ namespace CSMWorld
public:
NestedTableWrapper(const NestedTable& nestedTable) {}
NestedTableWrapper(const NestedTable& nestedTable)
: mNestedTable(nestedTable) {}
NestedTable getNestedTable() const
{

View File

@ -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,