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");