1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Issue #378: Fix (record wasn't build fully)

This commit is contained in:
Marc Zinnschlag 2012-08-28 09:32:38 +02:00
parent 160b52162b
commit 40d4dad15e

View File

@ -745,8 +745,11 @@ namespace MWWorld
std::ostringstream stream;
stream << "$dynamic" << mNextDynamicRecord++;
ESM::Potion record2 (record);
record2.mId = stream.str();
const ESM::Potion *created =
&mStore.potions.list.insert (std::make_pair (stream.str(), record)).first->second;
&mStore.potions.list.insert (std::make_pair (stream.str(), record2)).first->second;
mStore.all.insert (std::make_pair (stream.str(), ESM::REC_ALCH));