Use copy instead of replace

This commit is contained in:
OciXCrom 2018-08-31 20:18:36 +02:00
parent 109837de9a
commit f48e728e06

View File

@ -922,6 +922,8 @@ stock precache_player_model(const name[], &id = 0)
id = precache_generic(model); id = precache_generic(model);
static const extension[] = "T.mdl"; 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); return precache_model(model);
} }