aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/client/snd_openal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c
index 7514f8b..9652cbd 100644
--- a/code/client/snd_openal.c
+++ b/code/client/snd_openal.c
@@ -1465,7 +1465,7 @@ void S_AL_Respatialize( int entityNum, const vec3_t origin, vec3_t axis[3], int
float orientation[6];
vec3_t sorigin;
- if( s_alSpatEntOrigin->integer && entityNum )
+ if( s_alSpatEntOrigin->integer && entityNum >= 0 )
VectorCopy( entityList[ entityNum ].origin, sorigin );
else
{