File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object
Generals/Code/GameEngine/Source/GameLogic/Object Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2039,7 +2039,6 @@ void PartitionData::updateCellsTouched()
2039
2039
2040
2040
2041
2041
Object *obj = getObject ();
2042
- DEBUG_ASSERTCRASH (obj != NULL || m_ghostObject != NULL , (" must be attached to an Object here 1" ));
2043
2042
2044
2043
if (obj)
2045
2044
{
@@ -2060,6 +2059,11 @@ void PartitionData::updateCellsTouched()
2060
2059
majorRadius = m_ghostObject->getGeometryMajorRadius ();
2061
2060
minorRadius = m_ghostObject->getGeometryMinorRadius ();
2062
2061
}
2062
+ else
2063
+ {
2064
+ DEBUG_CRASH ((" must be attached to an Object here" ));
2065
+ return ;
2066
+ }
2063
2067
2064
2068
removeAllTouchedCells ();
2065
2069
if (isSmall)
Original file line number Diff line number Diff line change @@ -2043,7 +2043,6 @@ void PartitionData::updateCellsTouched()
2043
2043
2044
2044
2045
2045
Object *obj = getObject ();
2046
- DEBUG_ASSERTCRASH (obj != NULL || m_ghostObject != NULL , (" must be attached to an Object here 1" ));
2047
2046
2048
2047
if (obj)
2049
2048
{
@@ -2064,6 +2063,11 @@ void PartitionData::updateCellsTouched()
2064
2063
majorRadius = m_ghostObject->getGeometryMajorRadius ();
2065
2064
minorRadius = m_ghostObject->getGeometryMinorRadius ();
2066
2065
}
2066
+ else
2067
+ {
2068
+ DEBUG_CRASH ((" must be attached to an Object here" ));
2069
+ return ;
2070
+ }
2067
2071
2068
2072
removeAllTouchedCells ();
2069
2073
if (isSmall)
You can’t perform that action at this time.
0 commit comments