AddColor uint16_t override

This commit is contained in:
scawful
2024-07-24 00:13:42 -04:00
parent 841e3d78c9
commit aec09fa8da

View File

@@ -151,6 +151,11 @@ class SnesPalette {
size_++;
}
void AddColor(uint16_t color) {
colors.emplace_back(color);
size_++;
}
absl::StatusOr<SnesColor> GetColor(int i) const {
if (i > size_) {
return absl::InvalidArgumentError("SnesPalette: Index out of bounds");