Skip to content

Commit

Permalink
bugfix:
Browse files Browse the repository at this point in the history
Reset entry ids no matter if no styles
  • Loading branch information
xufan committed Mar 24, 2017
1 parent 6a01b07 commit 389ceb7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public class AssetEditor extends CppHexEditor {
def stringCount = ids.size()
def entryDiff = 0

if (sp.styleCount > 0 && entries != null) {
if (sp.styleCount > 0) {
// The styles indexes are related to the strings.
// As example:
//
Expand All @@ -384,9 +384,10 @@ public class AssetEditor extends CppHexEditor {
//
// Hereby, resort the strings ordered by the ids to make sense.
ids.sort()

// Reset entry ids
for (int i = 0; i < stringCount; i++) {
}
// Reset entry ids no matter if no styles
for (int i = 0; i < stringCount; i++) {
if(entries != null){
def es = entries[ids[i]]
es.each {
it.value.data = i
Expand Down

0 comments on commit 389ceb7

Please sign in to comment.