mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #1406 from Azaezel/alpha41/crashfix
fix another potential crash with firstresponder code
This commit is contained in:
commit
3b39d74f57
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ void GuiInspectorField::setFirstResponder( GuiControl *firstResponder )
|
||||||
{
|
{
|
||||||
Parent::setFirstResponder( firstResponder );
|
Parent::setFirstResponder( firstResponder );
|
||||||
|
|
||||||
if (( firstResponder == this || firstResponder == mEdit ) && firstResponder->isProperlyAdded())
|
if (( firstResponder == this || firstResponder == mEdit ) && (firstResponder && firstResponder->isProperlyAdded()))
|
||||||
{
|
{
|
||||||
mInspector->setHighlightField( this );
|
mInspector->setHighlightField( this );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue