I guess you can't do that.

This commit is contained in:
strangezak
2018-06-09 10:35:38 -07:00
parent ec5bc9c0d3
commit 0e2bc9be4f

View File

@@ -316,7 +316,7 @@ typedef union hmm_vec2
float Elements[2];
#ifdef __cplusplus
inline float &operator[](int &Index)
inline float &operator[](int Index)
{
return Elements[Index];
}
@@ -367,7 +367,7 @@ typedef union hmm_vec3
float Elements[3];
#ifdef __cplusplus
inline float &operator[](int &Index)
inline float &operator[](int Index)
{
return Elements[Index];
}
@@ -431,7 +431,7 @@ typedef union hmm_vec4
#endif
#ifdef __cplusplus
inline float &operator[](int &Index)
inline float &operator[](int Index)
{
return Elements[Index];
}
@@ -447,7 +447,7 @@ typedef union hmm_mat4
#endif
#ifdef __cplusplus
inline hmm_vec4 operator[](const int &Index)
inline hmm_vec4 operator[](const int Index)
{
float* col = Elements[Index];