From 0e2bc9be4fcbe1a29bd97b3f91fe643c38dac458 Mon Sep 17 00:00:00 2001 From: strangezak Date: Sat, 9 Jun 2018 10:35:38 -0700 Subject: [PATCH] I guess you can't do that. --- HandmadeMath.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HandmadeMath.h b/HandmadeMath.h index b0f4026..9275b8f 100644 --- a/HandmadeMath.h +++ b/HandmadeMath.h @@ -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];