1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-05 07:20:42 +00:00

animation data: lintfix

This commit is contained in:
M. Sz 2021-03-04 11:37:16 +01:00
parent c603eaafbc
commit 2e2d086d71

View File

@ -61,6 +61,7 @@ func (ad *AnimationData) GetRecordsCount() int {
return len(ad.entries)
}
// PushRecord adds a new record to entry named 'name'
func (ad *AnimationData) PushRecord(name string) {
ad.entries[name] = append(
ad.entries[name],
@ -70,8 +71,10 @@ func (ad *AnimationData) PushRecord(name string) {
)
}
// DeleteRecord teletes specified index from specified entry
func (ad *AnimationData) DeleteRecord(name string, recordIdx int) error {
newRecords := make([]*AnimationDataRecord, 0)
for n, i := range ad.entries[name] {
if n == recordIdx {
continue