mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Change -5 to charsmax
This commit is contained in:
parent
d1e9c0c5c7
commit
109837de9a
@ -921,6 +921,7 @@ stock precache_player_model(const name[], &id = 0)
|
||||
if(file_exists(model))
|
||||
id = precache_generic(model);
|
||||
|
||||
replace_string(model[strlen(model) - 5], charsmax(model), "T.mdl", ".mdl");
|
||||
static const extension[] = "T.mdl";
|
||||
replace_string(model[charsmax(extension)], charsmax(model), extension, ".mdl");
|
||||
return precache_model(model);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user