Prevent uninitialized access to hitwalls[] in clipmove()

git-svn-id: https://svn.eduke32.com/eduke32@7759 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-07-06 16:30:34 +00:00 committed by Christoph Oelckers
parent 130649b017
commit 82c37b78cc

View file

@ -1322,7 +1322,7 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int
} }
#endif #endif
int32_t hitwalls[4], hitwall; int32_t hitwalls[4] = {}, hitwall;
int32_t clipReturn = 0; int32_t clipReturn = 0;
native_t cnt = clipmoveboxtracenum; native_t cnt = clipmoveboxtracenum;