mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 20:49:56 +00:00
Handle plugins that has 0x00 for levelled list types, for example Ravenloft v5.02d, to use 0x01.
This commit is contained in:
parent
f1c0847897
commit
7f2bd01f79
1 changed files with 15 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
#define CSM_WOLRD_REFIDADAPTERIMP_H
|
#define CSM_WOLRD_REFIDADAPTERIMP_H
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
|
@ -1895,6 +1896,20 @@ namespace CSMWorld
|
||||||
{
|
{
|
||||||
return QString("All Levels");
|
return QString("All Levels");
|
||||||
}
|
}
|
||||||
|
else if (mType == CSMWorld::UniversalId::Type_CreatureLevelledList &&
|
||||||
|
record.get().mFlags == 0x00)
|
||||||
|
{
|
||||||
|
std::cerr << "Unknown creature leveled list type: " << record.get().mFlags
|
||||||
|
<< ", Using \"All Levels\""<< std::endl;
|
||||||
|
return QString("All Levels");
|
||||||
|
}
|
||||||
|
else if (mType == CSMWorld::UniversalId::Type_ItemLevelledList &&
|
||||||
|
record.get().mFlags == 0x00)
|
||||||
|
{
|
||||||
|
std::cerr << "Unknown item leveled list type: " << record.get().mFlags
|
||||||
|
<< ", Using \"Each\""<< std::endl;
|
||||||
|
return QString("Each");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
throw std::runtime_error("unknown leveled list type");
|
throw std::runtime_error("unknown leveled list type");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue