mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Use copy instead of replace
This commit is contained in:
parent
109837de9a
commit
f48e728e06
@ -922,6 +922,8 @@ stock precache_player_model(const name[], &id = 0)
|
||||
id = precache_generic(model);
|
||||
|
||||
static const extension[] = "T.mdl";
|
||||
replace_string(model[charsmax(extension)], charsmax(model), extension, ".mdl");
|
||||
#pragma unused extension
|
||||
|
||||
copy(model[strlen(model) - charsmax(extension)], charsmax(model), ".mdl");
|
||||
return precache_model(model);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user