mirror of
https://github.com/rehlds/reapi.git
synced 2025-01-28 14:37:57 +03:00
Add an important clarification to the native rg_create_entity comment about cannot use a hash table for an entity with mutable class name otherwise, it will cause a memory leak
This commit is contained in:
parent
2bceff94cf
commit
30c1964df1
@ -419,8 +419,9 @@ native rg_update_teamscores(const iCtsWins = 0, const iTsWins = 0, const bool:bA
|
|||||||
*
|
*
|
||||||
* @param classname Entity classname
|
* @param classname Entity classname
|
||||||
* @param useHashTable Use this only for known game entities
|
* @param useHashTable Use this only for known game entities
|
||||||
*
|
* @note: Do not use this if you plan to change custom classname an entity after creation,
|
||||||
* @note: Do not use this if you use a custom classname
|
* otherwise it will never be release from hash table even if an entity was destroyed,
|
||||||
|
* and that to lead table to inflate/memory leaks
|
||||||
*
|
*
|
||||||
* @return Index of the created entity or 0 otherwise
|
* @return Index of the created entity or 0 otherwise
|
||||||
*/
|
*/
|
||||||
|
@ -542,8 +542,9 @@ cell AMX_NATIVE_CALL rg_update_teamscores(AMX *amx, cell *params)
|
|||||||
*
|
*
|
||||||
* @param classname Entity classname
|
* @param classname Entity classname
|
||||||
* @param useHashTable Use this only for known game entities
|
* @param useHashTable Use this only for known game entities
|
||||||
*
|
* @note: Do not use this if you plan to change custom classname an entity after creation,
|
||||||
* @note: Do not use this if you use a custom classname
|
* otherwise it will never be release from hash table even if an entity was destroyed,
|
||||||
|
* and that to lead table to inflate/memory leaks
|
||||||
*
|
*
|
||||||
* @return Index of the created entity or 0 otherwise
|
* @return Index of the created entity or 0 otherwise
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user