mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +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);
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user