mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Fix crash in EngFunc_TraceTexture (bug 4576, r=dvander).
This commit is contained in:
parent
e08f1dfccf
commit
c439946a34
@ -521,8 +521,8 @@ static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params)
|
|||||||
Vec2[2]=amx_ctof(cRet[2]);
|
Vec2[2]=amx_ctof(cRet[2]);
|
||||||
temp = (char*)(*g_engfuncs.pfnTraceTexture)(INDEXENT2(index),Vec1,Vec2);
|
temp = (char*)(*g_engfuncs.pfnTraceTexture)(INDEXENT2(index),Vec1,Vec2);
|
||||||
cRet = MF_GetAmxAddr(amx,params[6]);
|
cRet = MF_GetAmxAddr(amx,params[6]);
|
||||||
MF_SetAmxString(amx, params[5], temp, cRet[0]);
|
MF_SetAmxString(amx, params[5], (temp == NULL) ? "NoTexture" : temp, cRet[0]);
|
||||||
return 1;
|
return (temp != NULL);
|
||||||
|
|
||||||
|
|
||||||
// pfnTraceSphere
|
// pfnTraceSphere
|
||||||
|
Loading…
Reference in New Issue
Block a user