forked from mirror/openmw-tes3mp
Fixed a couple of ESM issues (compatible with the Redemtion mod)
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@96 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
parent
40dcc93fe2
commit
8dd3bfa896
2 changed files with 3 additions and 3 deletions
|
@ -53,10 +53,10 @@ struct Book
|
||||||
void load()
|
void load()
|
||||||
{with(esFile){
|
{with(esFile){
|
||||||
model = getMesh();
|
model = getMesh();
|
||||||
name = getHNString("FNAM");
|
name = getHNOString("FNAM");
|
||||||
readHNExact(&data, data.sizeof, "BKDT");
|
readHNExact(&data, data.sizeof, "BKDT");
|
||||||
script = getHNOPtr!(Script)("SCRI", scripts);
|
script = getHNOPtr!(Script)("SCRI", scripts);
|
||||||
icon = getIcon();
|
icon = getOIcon();
|
||||||
text = getHNOString("TEXT");
|
text = getHNOString("TEXT");
|
||||||
enchant = getHNOPtr!(Enchantment)("ENAM", enchants);
|
enchant = getHNOPtr!(Enchantment)("ENAM", enchants);
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ struct Container
|
||||||
void load()
|
void load()
|
||||||
{with(esFile){
|
{with(esFile){
|
||||||
model = getMesh();
|
model = getMesh();
|
||||||
name = getHNString("FNAM");
|
name = getHNOString("FNAM");
|
||||||
weight = getHNFloat("CNDT");
|
weight = getHNFloat("CNDT");
|
||||||
flags = cast(Flags)getHNUint("FLAG");
|
flags = cast(Flags)getHNUint("FLAG");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue