fix clang error: variable-sized object may not be initialized
This commit is contained in:
parent
17406bd124
commit
5b33fae202
|
|
@ -247,7 +247,7 @@ int pk3BSPMain( int argc, char **argv ){
|
||||||
/* extract map name */
|
/* extract map name */
|
||||||
const CopiedString nameOFmap( PathFilename( source ) );
|
const CopiedString nameOFmap( PathFilename( source ) );
|
||||||
|
|
||||||
bool drawsurfSHs[numBSPShaders] = { 0 };
|
std::vector<bool> drawsurfSHs( numBSPShaders, false );
|
||||||
|
|
||||||
for ( i = 0; i < numBSPDrawSurfaces; ++i ){
|
for ( i = 0; i < numBSPDrawSurfaces; ++i ){
|
||||||
drawsurfSHs[ bspDrawSurfaces[i].shaderNum ] = true;
|
drawsurfSHs[ bspDrawSurfaces[i].shaderNum ] = true;
|
||||||
|
|
@ -919,7 +919,7 @@ int repackBSPMain( int argc, char **argv ){
|
||||||
/* extract map name */
|
/* extract map name */
|
||||||
const CopiedString nameOFmap( PathFilename( source ) );
|
const CopiedString nameOFmap( PathFilename( source ) );
|
||||||
|
|
||||||
bool drawsurfSHs[numBSPShaders] = { 0 };
|
std::vector<bool> drawsurfSHs( numBSPShaders, false );
|
||||||
|
|
||||||
for ( i = 0; i < numBSPDrawSurfaces; ++i ){
|
for ( i = 0; i < numBSPDrawSurfaces; ++i ){
|
||||||
drawsurfSHs[ bspDrawSurfaces[i].shaderNum ] = true;
|
drawsurfSHs[ bspDrawSurfaces[i].shaderNum ] = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user