diff options
-rw-r--r-- | spuregion.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spuregion.c b/spuregion.c index f3a8906..b2a6526 100644 --- a/spuregion.c +++ b/spuregion.c @@ -62,6 +62,10 @@ bool cSpuRegion::addIndex(tIndex idx) { sSection *sec = §ions[usedSections]; + if (containsIndex(idx)) { + return true; + } + if (sec->usedColors == MAX_COLORS) { return false; } |