diff --git a/tools/quake3/q3map2/autopk3.cpp b/tools/quake3/q3map2/autopk3.cpp index aa3eea1f..c75556d0 100644 --- a/tools/quake3/q3map2/autopk3.cpp +++ b/tools/quake3/q3map2/autopk3.cpp @@ -247,7 +247,7 @@ int pk3BSPMain( int argc, char **argv ){ /* extract map name */ const CopiedString nameOFmap( PathFilename( source ) ); - bool drawsurfSHs[numBSPShaders] = { 0 }; + std::vector drawsurfSHs( numBSPShaders, false ); for ( i = 0; i < numBSPDrawSurfaces; ++i ){ drawsurfSHs[ bspDrawSurfaces[i].shaderNum ] = true; @@ -919,7 +919,7 @@ int repackBSPMain( int argc, char **argv ){ /* extract map name */ const CopiedString nameOFmap( PathFilename( source ) ); - bool drawsurfSHs[numBSPShaders] = { 0 }; + std::vector drawsurfSHs( numBSPShaders, false ); for ( i = 0; i < numBSPDrawSurfaces; ++i ){ drawsurfSHs[ bspDrawSurfaces[i].shaderNum ] = true;