Fix element access operator of aiColor4D

pull/2441/head
Jeongseok Lee 2019-04-28 22:16:20 -07:00
parent 55cdf1d37c
commit bcd17481e5
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,8 @@ AI_FORCE_INLINE TReal aiColor4t<TReal>::operator[](unsigned int i) const {
return g;
case 2:
return b;
case 3:
return a;
default:
break;
}
@ -100,6 +102,8 @@ AI_FORCE_INLINE TReal& aiColor4t<TReal>::operator[](unsigned int i) {
return g;
case 2:
return b;
case 3:
return a;
default:
break;
}