diff --git a/plugins/include/tf2_stocks.inc b/plugins/include/tf2_stocks.inc index a88601a9..71303325 100644 --- a/plugins/include/tf2_stocks.inc +++ b/plugins/include/tf2_stocks.inc @@ -431,7 +431,7 @@ stock int TF2_GetPlayerResourceData(int client, TFResourceType type) return -1; } - int entity = TF2_GetResourceEntity(); + int entity = GetPlayerResourceEntity(); if (entity == -1) { @@ -468,7 +468,7 @@ stock bool TF2_SetPlayerResourceData(int client, TFResourceType type, any value) return false; } - int entity = TF2_GetResourceEntity(); + int entity = GetPlayerResourceEntity(); if (entity == -1) {