From 19e06100b25da92b487b5368dde3db446d89a066 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Mon, 15 Sep 2014 09:57:38 +0200 Subject: [PATCH] Fix a crash regression in #112 --- dlls/engine/forwards.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/engine/forwards.cpp b/dlls/engine/forwards.cpp index 7fcf4bc1..97926f67 100755 --- a/dlls/engine/forwards.cpp +++ b/dlls/engine/forwards.cpp @@ -253,9 +253,9 @@ void pfnTouch(edict_t *pToucher, edict_t *pTouched) META_RES res=MRES_IGNORED; for (i=0; iToucher.length() == 0) + if (Touches[i]->Toucher.isVoid()) { - if (Touches[i]->Touched.length() == 0) + if (Touches[i]->Touched.isVoid()) { retVal = MF_ExecuteForward(Touches[i]->Forward, (cell)ptrIndex, (cell)ptdIndex); if (retVal & 2/*PLUGIN_HANDLED_MAIN*/) @@ -270,7 +270,7 @@ void pfnTouch(edict_t *pToucher, edict_t *pTouched) res=MRES_SUPERCEDE; } } else if (Touches[i]->Toucher.compare(ptrClass)==0) { - if (Touches[i]->Touched.length() == 0) + if (Touches[i]->Touched.isVoid()) { retVal = MF_ExecuteForward(Touches[i]->Forward, (cell)ptrIndex, (cell)ptdIndex); if (retVal & 2/*PLUGIN_HANDLED_MAIN*/)