From 8dd3bfa8969c4a6a58e2b15e215aef8878022599 Mon Sep 17 00:00:00 2001 From: nkorslund Date: Fri, 3 Apr 2009 10:09:06 +0000 Subject: [PATCH] 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 --- esm/loadbook.d | 4 ++-- esm/loadcont.d | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esm/loadbook.d b/esm/loadbook.d index 4d040b8c5..11bec8373 100644 --- a/esm/loadbook.d +++ b/esm/loadbook.d @@ -53,10 +53,10 @@ struct Book void load() {with(esFile){ model = getMesh(); - name = getHNString("FNAM"); + name = getHNOString("FNAM"); readHNExact(&data, data.sizeof, "BKDT"); script = getHNOPtr!(Script)("SCRI", scripts); - icon = getIcon(); + icon = getOIcon(); text = getHNOString("TEXT"); enchant = getHNOPtr!(Enchantment)("ENAM", enchants); diff --git a/esm/loadcont.d b/esm/loadcont.d index d372db90e..84178eba3 100644 --- a/esm/loadcont.d +++ b/esm/loadcont.d @@ -81,7 +81,7 @@ struct Container void load() {with(esFile){ model = getMesh(); - name = getHNString("FNAM"); + name = getHNOString("FNAM"); weight = getHNFloat("CNDT"); flags = cast(Flags)getHNUint("FLAG");