Fix trainer Builder segfault
parent
853d8eee5d
commit
0d6218bfa0
|
@ -1830,10 +1830,11 @@ void CObjectInterface::UpdateInterface()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( type == OBJECT_MOBILEfb ||
|
if ( (type == OBJECT_MOBILEfb ||
|
||||||
type == OBJECT_MOBILEtb ||
|
type == OBJECT_MOBILEtb ||
|
||||||
type == OBJECT_MOBILEwb ||
|
type == OBJECT_MOBILEwb ||
|
||||||
type == OBJECT_MOBILEib ) // builder?
|
type == OBJECT_MOBILEib) && // builder?
|
||||||
|
!m_object->GetTrainer() )
|
||||||
{
|
{
|
||||||
if(!bEnable) m_buildInterface = false;
|
if(!bEnable) m_buildInterface = false;
|
||||||
CheckInterface(pw, EVENT_OBJECT_BUILD, m_buildInterface);
|
CheckInterface(pw, EVENT_OBJECT_BUILD, m_buildInterface);
|
||||||
|
|
Loading…
Reference in New Issue