summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spuregion.c4
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 = &sections[usedSections];
+ if (containsIndex(idx)) {
+ return true;
+ }
+
if (sec->usedColors == MAX_COLORS) {
return false;
}