mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-20 03:16:26 -05:00
need to change reference to stream reader after d2common refactor moved it (#719)
This commit is contained in:
parent
65cce60eab
commit
a0345ef3b1
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/OpenDiablo2/OpenDiablo2/d2common"
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2datautils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -58,7 +58,7 @@ func (ad *AnimationData) GetRecords(name string) []*AnimationDataRecord {
|
|||||||
|
|
||||||
// Load loads the data into an AnimationData struct
|
// Load loads the data into an AnimationData struct
|
||||||
func Load(data []byte) (*AnimationData, error) {
|
func Load(data []byte) (*AnimationData, error) {
|
||||||
reader := d2common.CreateStreamReader(data)
|
reader := d2datautils.CreateStreamReader(data)
|
||||||
animdata := &AnimationData{}
|
animdata := &AnimationData{}
|
||||||
hashIdx := 0
|
hashIdx := 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user