mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 18:45:38 +00:00
ESSImport: convert NPC disposition
This commit is contained in:
parent
1375a4e4bb
commit
0fc9221eb3
2 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@ namespace ESSImport
|
||||||
|
|
||||||
void convertNPCC(const NPCC &npcc, ESM::NpcState &npcState)
|
void convertNPCC(const NPCC &npcc, ESM::NpcState &npcState)
|
||||||
{
|
{
|
||||||
|
npcState.mNpcStats.mDisposition = npcc.mNPDT.mDisposition;
|
||||||
npcState.mNpcStats.mReputation = npcc.mNPDT.mReputation;
|
npcState.mNpcStats.mReputation = npcc.mNPDT.mReputation;
|
||||||
|
|
||||||
convertInventory(npcc.mInventory, npcState.mInventory);
|
convertInventory(npcc.mInventory, npcState.mInventory);
|
||||||
|
|
|
@ -19,7 +19,8 @@ namespace ESSImport
|
||||||
{
|
{
|
||||||
struct NPDT
|
struct NPDT
|
||||||
{
|
{
|
||||||
unsigned char unknown[2];
|
unsigned char mDisposition;
|
||||||
|
unsigned char unknown;
|
||||||
unsigned char mReputation;
|
unsigned char mReputation;
|
||||||
unsigned char unknown2[5];
|
unsigned char unknown2[5];
|
||||||
} mNPDT;
|
} mNPDT;
|
||||||
|
|
Loading…
Reference in a new issue