Actually, adding two integers straight from an array is not how to do it. Instead you need to split the number up in to it's separate RGB, and then add them up individually, then compile them back into a single number.
(Yeah I found out how to in the end. Just in case someone has similar problem)