fix clang error: variable-sized object may not be initialized

This commit is contained in:
Garux 2021-06-21 17:07:03 +03:00
parent 17406bd124
commit 5b33fae202

View File

@ -247,7 +247,7 @@ int pk3BSPMain( int argc, char **argv ){
/* extract map name */
const CopiedString nameOFmap( PathFilename( source ) );
bool drawsurfSHs[numBSPShaders] = { 0 };
std::vector<bool> 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<bool> drawsurfSHs( numBSPShaders, false );
for ( i = 0; i < numBSPDrawSurfaces; ++i ){
drawsurfSHs[ bspDrawSurfaces[i].shaderNum ] = true;