Revert "Fix another static variable instance"

This reverts commit 5bd3a9cca8.

Reverted in favor of cherry-picking the more complete fix
from 8218f9ab44
This commit is contained in:
Seth Hillbrand 2022-05-06 11:52:35 -07:00
parent 5bd3a9cca8
commit 611311697e
1 changed files with 2 additions and 1 deletions

View File

@ -974,7 +974,8 @@ void ZONE::HatchBorder()
#define MAXPTS 200 // Usually we store only few values per one hatch line #define MAXPTS 200 // Usually we store only few values per one hatch line
// depending on the complexity of the zone outline // depending on the complexity of the zone outline
std::vector<VECTOR2I> pointbuffer; static std::vector<VECTOR2I> pointbuffer;
pointbuffer.clear();
pointbuffer.reserve( MAXPTS + 2 ); pointbuffer.reserve( MAXPTS + 2 );
for( int a = min_a; a < max_a; a += spacing ) for( int a = min_a; a < max_a; a += spacing )