Fix some natives relying on a known engine bug related to last player's edict being invalid

This commit is contained in:
Arkshine
2015-10-06 16:45:35 +02:00
parent fd0f6cc429
commit 9980b7ac62
10 changed files with 13 additions and 12 deletions

View File

@@ -423,7 +423,7 @@ static cell _message_begin(AMX *amx, cell *params, bool useFloat) /* 4 param */
return 0;
}
MESSAGE_BEGIN(params[1], params[2], NULL, INDEXENT(params[4]));
MESSAGE_BEGIN(params[1], params[2], NULL, GETEDICT(params[4]));
break;
}
@@ -771,7 +771,7 @@ static cell _emessage_begin(AMX *amx, cell *params, bool useFloat)
return 0;
}
g_pEngTable->pfnMessageBegin(params[1], params[2], NULL, INDEXENT(params[4]));
g_pEngTable->pfnMessageBegin(params[1], params[2], NULL, GETEDICT(params[4]));
break;
}