mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Issue found by PVS Studio:
Several instances where we utilize a pointer variable without properly testing that they aren't null first.
This commit is contained in:
parent
b24bdfbc8b
commit
3a18819e1e
9 changed files with 44 additions and 37 deletions
|
|
@ -2655,7 +2655,7 @@ void WorldEditor::renderScene( const RectI &updateRect )
|
|||
|
||||
// Probably should test the entire icon screen-rect instead of just the centerpoint
|
||||
// but would need to move some code from renderScreenObj to here.
|
||||
if ( mDragSelect )
|
||||
if (mDragSelect && selection)
|
||||
if ( mDragRect.pointInRect(sPosI) && !selection->objInSet(obj) )
|
||||
mDragSelected->addObject(obj);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue