mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
Fixed two bugs from at18519 (Lord of Destruction)
This commit is contained in:
parent
2d5f9ba181
commit
ad634924fa
@ -266,8 +266,7 @@ static cell AMX_NATIVE_CALL get_array(AMX *amx, cell *params)
|
|||||||
|
|
||||||
int size = params[3];
|
int size = params[3];
|
||||||
|
|
||||||
while (size-->0)
|
memcpy(dest, source, size * sizeof(cell));
|
||||||
*dest = *source;
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -293,8 +292,7 @@ static cell AMX_NATIVE_CALL set_array(AMX *amx, cell *params)
|
|||||||
|
|
||||||
int size = params[3];
|
int size = params[3];
|
||||||
|
|
||||||
while (size-->0)
|
memcpy(dest, source, size * sizeof(cell));
|
||||||
*dest = *source;
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -424,7 +422,7 @@ AMX_NATIVE_INFO g_NativeNatives[] = {
|
|||||||
{"get_param", get_param},
|
{"get_param", get_param},
|
||||||
{"get_param_byref", get_param_byref},
|
{"get_param_byref", get_param_byref},
|
||||||
{"set_param_byref", set_param_byref},
|
{"set_param_byref", set_param_byref},
|
||||||
{"get_array", set_array},
|
{"get_array", get_array},
|
||||||
{"set_array", set_array},
|
{"set_array", set_array},
|
||||||
//these are dummy functions for floats ;p
|
//these are dummy functions for floats ;p
|
||||||
{"get_param_f", get_param},
|
{"get_param_f", get_param},
|
||||||
|
Loading…
Reference in New Issue
Block a user