From 65e6d1cc46b86370a705533aae6657c10b7c57b0 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Tue, 27 Feb 2018 17:33:17 -0800 Subject: [PATCH] Index out of range fix in batchMove --- types/mapper/batchmove.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mapper/batchmove.go b/types/mapper/batchmove.go index c0b4b7bb..c8a846e2 100644 --- a/types/mapper/batchmove.go +++ b/types/mapper/batchmove.go @@ -21,7 +21,7 @@ func (b *BatchMove) FromInternal(data map[string]interface{}) { } func (b *BatchMove) ToInternal(data map[string]interface{}) { - for i := len(b.moves) - 1; i >= 0; i++ { + for i := len(b.moves) - 1; i >= 0; i-- { b.moves[i].ToInternal(data) } }