diff options
Diffstat (limited to 'src/client/cl_ui.c')
-rw-r--r-- | src/client/cl_ui.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index c0d4e729..49719824 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -631,11 +631,9 @@ FloatAsInt ==================== */ static int FloatAsInt( float f ) { - int temp; - - *(float *)&temp = f; - - return temp; + floatint_t fi; + fi.f = f; + return fi.i; } /* |