Skip to content

Commit

Permalink
whoops use 1000 size instead of 1100
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Oct 12, 2023
1 parent 4ffec21 commit 78583a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Features/OffsetNextFree/OffsetNextFree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using namespace geode::prelude;

class $modify(LevelEditorLayer) {
int getNextColorChannel() {
std::array<bool, 1100> usedColors = this->getUsedColors();
std::array<bool, 1000> usedColors = this->getUsedColors();
auto offset = OffsetManager::get()->m_colorOffset;
for (int i = 1; i < 1000; i++) {
if (!usedColors[i] && i >= offset) {
Expand Down Expand Up @@ -44,8 +44,8 @@ class $modify(LevelEditorLayer) {
return ret;
}

std::array<bool, 1100> getUsedColors() {
std::array<bool, 1100> ret;
std::array<bool, 1000> getUsedColors() {
std::array<bool, 1000> ret;
std::fill(ret.begin(), ret.end(), false);
for (auto object : CCArrayExt<GameObject*>(m_objects)) {
if (object->m_baseColor) {
Expand Down

0 comments on commit 78583a2

Please sign in to comment.