|
|
@ -12,7 +12,7 @@ namespace ESM
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string id = esm.getHString();
|
|
|
|
std::string id = esm.getHString();
|
|
|
|
|
|
|
|
|
|
|
|
std::map<const int, float> random;
|
|
|
|
std::map<int, float> random;
|
|
|
|
while (esm.isNextSub("INDX"))
|
|
|
|
while (esm.isNextSub("INDX"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int index;
|
|
|
|
int index;
|
|
|
@ -73,8 +73,8 @@ namespace ESM
|
|
|
|
{
|
|
|
|
{
|
|
|
|
esm.writeHNString("SPEL", it->first);
|
|
|
|
esm.writeHNString("SPEL", it->first);
|
|
|
|
|
|
|
|
|
|
|
|
const std::map<const int, float>& random = it->second;
|
|
|
|
const std::map<int, float>& random = it->second;
|
|
|
|
for (std::map<const int, float>::const_iterator rIt = random.begin(); rIt != random.end(); ++rIt)
|
|
|
|
for (std::map<int, float>::const_iterator rIt = random.begin(); rIt != random.end(); ++rIt)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
esm.writeHNT("INDX", rIt->first);
|
|
|
|
esm.writeHNT("INDX", rIt->first);
|
|
|
|
esm.writeHNT("RAND", rIt->second);
|
|
|
|
esm.writeHNT("RAND", rIt->second);
|
|
|
|