diff --git a/ui/src/addfixture.cpp b/ui/src/addfixture.cpp index 6d1e311f5..01bb48c9c 100644 --- a/ui/src/addfixture.cpp +++ b/ui/src/addfixture.cpp @@ -408,7 +408,13 @@ quint32 AddFixture::findAddress(quint32 universe, quint32 numChannels, continue; for (quint32 ch = 0; ch < fxi->channels(); ch++) - map[(fxi->universeAddress() & 0x01FF) + ch] = 1; + { + quint32 addr = (fxi->universeAddress() & 0x01FF) + ch; + if (addr > 511) + continue; + + map[addr] = 1; + } } /* Try to find the next contiguous free address space */