diff --git a/code/game/q_shared.c b/code/game/q_shared.c index 6d354931..928332f4 100644 --- a/code/game/q_shared.c +++ b/code/game/q_shared.c @@ -180,11 +180,10 @@ typedef union { } _FloatByteUnion; float FloatSwap (const float *f) { - const _FloatByteUnion *in; _FloatByteUnion out; - in = (_FloatByteUnion *)f; - out.i = LongSwap(in->i); + out.f = *f; + out.i = LongSwap(out.i); return out.f; }