Browse Source

Fixed a small bug in NESPalette

dev-tmpl
Bryan Miller 6 years ago
parent
commit
59d5722192
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/js/NESPalette.js

+ 1
- 1
app/js/NESPalette.js View File

if (pci < 0 || pci >= 4){ if (pci < 0 || pci >= 4){
throw new RangeError("Palette color index is out of bounds."); throw new RangeError("Palette color index is out of bounds.");
} }
return NESPalette.SystemColor(this.get_palette_syscolor_index(p, pci));
return NESPalette.SystemColor[this.get_palette_syscolor_index(p, pci)];
} }


/** /**

Loading…
Cancel
Save