Fix a crash regression in #112
This commit is contained in:
parent
152c984176
commit
19e06100b2
@ -253,9 +253,9 @@ void pfnTouch(edict_t *pToucher, edict_t *pTouched)
|
|||||||
META_RES res=MRES_IGNORED;
|
META_RES res=MRES_IGNORED;
|
||||||
for (i=0; i<Touches.length(); i++)
|
for (i=0; i<Touches.length(); i++)
|
||||||
{
|
{
|
||||||
if (Touches[i]->Toucher.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);
|
retVal = MF_ExecuteForward(Touches[i]->Forward, (cell)ptrIndex, (cell)ptdIndex);
|
||||||
if (retVal & 2/*PLUGIN_HANDLED_MAIN*/)
|
if (retVal & 2/*PLUGIN_HANDLED_MAIN*/)
|
||||||
@ -270,7 +270,7 @@ void pfnTouch(edict_t *pToucher, edict_t *pTouched)
|
|||||||
res=MRES_SUPERCEDE;
|
res=MRES_SUPERCEDE;
|
||||||
}
|
}
|
||||||
} else if (Touches[i]->Toucher.compare(ptrClass)==0) {
|
} 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);
|
retVal = MF_ExecuteForward(Touches[i]->Forward, (cell)ptrIndex, (cell)ptdIndex);
|
||||||
if (retVal & 2/*PLUGIN_HANDLED_MAIN*/)
|
if (retVal & 2/*PLUGIN_HANDLED_MAIN*/)
|
||||||
|
Loading…
Reference in New Issue
Block a user