v1.3.0: fixed a save/load error in spectral necromancers

This commit is contained in:
Evan Debenham
2022-06-02 12:23:15 -04:00
parent 1add7aa5d5
commit c608e09c18

View File

@@ -97,7 +97,10 @@ public class SpectralNecromancer extends Necromancer {
@Override
public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle);
Collections.addAll(wraithIDs, bundle.getInt(WRAITH_IDS));
wraithIDs.clear();
for (int i : bundle.getIntArray(WRAITH_IDS)){
wraithIDs.add(i);
}
}
@Override