]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix uninitialized variable warning
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Jul 2010 16:29:13 +0000 (16:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Jul 2010 16:29:13 +0000 (16:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10335 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 0d71711b7cb55b1a045324c65645adec10d6d499..3cfca8c96ef80b9a6544ef7fd1d758efba12478e 100644 (file)
@@ -7088,7 +7088,7 @@ void Mod_OBJ_Load(dp_model_t *mod, void *buffer, void *bufferend)
        char *argv[512];
        char line[1024];
        char materialname[MAX_QPATH];
-       int i, j, l, numvertices, firstvertex, firsttriangle, elementindex, vertexindex, surfacevertices, surfacetriangles, surfaceelements, submodelindex;
+       int i, j, l, numvertices, firstvertex, firsttriangle, elementindex, vertexindex, surfacevertices, surfacetriangles, surfaceelements, submodelindex = 0;
        int index1, index2, index3;
        objvertex_t vfirst, vprev, vcurrent;
        int argc;