File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/AI Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4032,8 +4032,12 @@ void Pathfinder::classifyFence( Object *obj, Bool insert )
4032
4032
IRegion2D cellBounds;
4033
4033
cellBounds.lo .x = REAL_TO_INT_FLOOR ((pos->x + 0 .5f )/PATHFIND_CELL_SIZE_F);
4034
4034
cellBounds.lo .y = REAL_TO_INT_FLOOR ((pos->y + 0 .5f )/PATHFIND_CELL_SIZE_F);
4035
+ // TheSuperHackers @fix Mauller 16/06/2025 Fixes uninitialized variables.
4036
+ // To keep retail compatibility they need to be uninitialized in VC6 builds.
4037
+ #if !(defined(_MSC_VER) && _MSC_VER < 1300)
4035
4038
cellBounds.hi .x = REAL_TO_INT_CEIL ((pos->x + 0 .5f )/PATHFIND_CELL_SIZE_F);
4036
4039
cellBounds.hi .y = REAL_TO_INT_CEIL ((pos->y + 0 .5f )/PATHFIND_CELL_SIZE_F);
4040
+ #endif
4037
4041
Bool didAnything = false ;
4038
4042
4039
4043
for (Int iy = 0 ; iy < numStepsY; ++iy, tl_x += ydx, tl_y += ydy)
You can’t perform that action at this time.
0 commit comments