[Hotfix] Crash fix that apparently didn't make it in another PR

This commit is contained in:
Akkadius 2021-09-13 14:15:08 -05:00
parent ce5fa9502f
commit 9589bf6bf8

View File

@ -11146,10 +11146,12 @@ void Client::Handle_OP_PopupResponse(const EQApplicationPacket *app)
break; break;
case POPUPID_DIAWIND: case POPUPID_DIAWIND:
if (EntityVariableExists(DIAWIND_RESPONSE_KEY.c_str())) {
response = GetEntityVariable(DIAWIND_RESPONSE_KEY.c_str()); response = GetEntityVariable(DIAWIND_RESPONSE_KEY.c_str());
if (!response.empty()) { if (!response.empty()) {
ChannelMessageReceived(8, 0, 100, response.c_str()); ChannelMessageReceived(8, 0, 100, response.c_str());
} }
}
break; break;
case EQ::popupresponse::MOB_INFO_DISMISS: case EQ::popupresponse::MOB_INFO_DISMISS: