|
@@ -890,7 +890,7 @@ protected:
|
|
|
|
|
|
void __PostInit() override
|
|
|
{
|
|
|
- if (m_pEntity != NULL) {
|
|
|
+ if (this->GetEntityBase() != NULL) {
|
|
|
CSimpleStringA uiState(true);
|
|
|
auto err = this->GetEntityBase()->GetFunction()->GetSysVar("UIState", uiState);
|
|
|
if (err == Error_Succeed && !uiState.IsNullOrEmpty()) {
|