1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-05 14:45:37 +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: public:
NestedTableWrapper(const NestedTable& nestedTable) {} NestedTableWrapper(const NestedTable& nestedTable)
: mNestedTable(nestedTable) {}
NestedTable getNestedTable() const NestedTable getNestedTable() const
{ {

View file

@ -1,9 +1,10 @@
#include "refidadapterimp.hpp" #include "refidadapterimp.hpp"
#include "nestedtablewrapper.hpp"
#include <cassert> #include <cassert>
#include <stdexcept> #include <stdexcept>
#include <components/esm/loadcont.hpp> #include <components/esm/loadcont.hpp>
#include "nestedtablewrapper.hpp"
CSMWorld::PotionRefIdAdapter::PotionRefIdAdapter (const InventoryColumns& columns, CSMWorld::PotionRefIdAdapter::PotionRefIdAdapter (const InventoryColumns& columns,
const RefIdColumn *autoCalc) const RefIdColumn *autoCalc)
@ -315,7 +316,7 @@ void CSMWorld::ContainerRefIdAdapter::setNestedTable(const RefIdColumn* column,
Record<ESM::Container>& record = dynamic_cast<Record<ESM::Container>&> ( Record<ESM::Container>& record = dynamic_cast<Record<ESM::Container>&> (
data.getRecord (RefIdData::LocalIndex (index, UniversalId::Type_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, CSMWorld::NestedTableWrapperBase CSMWorld::ContainerRefIdAdapter::nestedTable (const RefIdColumn* column,