Skip to content

Commit eb49be5

Browse files
committed
fix(debug): Fix wrong assert condition in W3DTreeDraw::addToTreeBuffer()
1 parent 487e5ce commit eb49be5

File tree

1 file changed

+1
-1
lines changed
  • GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw

1 file changed

+1
-1
lines changed

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DTreeDraw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void W3DTreeDraw::addToTreeBuffer()
126126
const W3DTreeDrawModuleData *moduleData = getW3DTreeDrawModuleData();
127127
const Drawable *draw = getDrawable();
128128

129-
DEBUG_ASSERTCRASH(draw->getPosition()->x == 0.0f && draw->getPosition()->y == 0.0f,
129+
DEBUG_ASSERTCRASH(!(draw->getPosition()->x == 0.0f && draw->getPosition()->y == 0.0f),
130130
("W3DTreeDraw::addToTreeBuffer - Why place tree at x:0 y:0 ?"));
131131

132132
Real scale = draw->getScale();

0 commit comments

Comments
 (0)