File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object
Generals/Code/GameEngine/Source/GameLogic/Object Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3242,6 +3242,11 @@ Object *PartitionManager::getClosestObjects(
3242
3242
Object* closestObj = NULL ;
3243
3243
Real closestDistSqr = maxDist * maxDist; // if it's not closer than this, we shouldn't consider it anyway...
3244
3244
Coord3D closestVec;
3245
+ #if !RETAIL_COMPATIBLE_CRC // TheSuperHackers @info This should be safe to initialize because it is unused, but let us be extra safe for now.
3246
+ closestVec.x = maxDist;
3247
+ closestVec.y = maxDist;
3248
+ closestVec.z = maxDist;
3249
+ #endif
3245
3250
3246
3251
#ifdef FASTER_GCO
3247
3252
Original file line number Diff line number Diff line change @@ -3275,6 +3275,11 @@ Object *PartitionManager::getClosestObjects(
3275
3275
Object* closestObj = NULL ;
3276
3276
Real closestDistSqr = maxDist * maxDist; // if it's not closer than this, we shouldn't consider it anyway...
3277
3277
Coord3D closestVec;
3278
+ #if !RETAIL_COMPATIBLE_CRC // TheSuperHackers @info This should be safe to initialize because it is unused, but let us be extra safe for now.
3279
+ closestVec.x = maxDist;
3280
+ closestVec.y = maxDist;
3281
+ closestVec.z = maxDist;
3282
+ #endif
3278
3283
3279
3284
#ifdef FASTER_GCO
3280
3285
You can’t perform that action at this time.
0 commit comments