Skip to content

Commit

Permalink
Add const (Southclaws#615)
Browse files Browse the repository at this point in the history
* Update vehicle-type.pwn

* Update vehicle.pwn
  • Loading branch information
kolor4do authored Nov 25, 2021
1 parent 2754ec2 commit f68da1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gamemodes/sss/core/vehicle/vehicle-type.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ _IsMatchingSize(vehicletype, const sizes[], maxsizes)
return 0;
}

stock GetVehicleGroupFromName(name[], bool:ignorecase = true, bool:partial = false)
stock GetVehicleGroupFromName(const name[], bool:ignorecase = true, bool:partial = false)
{
if(isnull(name))
return -1;
Expand All @@ -213,7 +213,7 @@ stock GetVehicleGroupFromName(name[], bool:ignorecase = true, bool:partial = fal
return -1;
}

stock GetVehicleTypeFromName(name[], bool:ignorecase = true, bool:partial = false)
stock GetVehicleTypeFromName(const name[], bool:ignorecase = true, bool:partial = false)
{
if(isnull(name))
return -1;
Expand Down
2 changes: 1 addition & 1 deletion gamemodes/sss/core/vehicle/vehicle.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ stock RespawnVehicle(vehicleid)
==============================================================================*/


_veh_create(type, Float:x, Float:y, Float:z, Float:r, colour1, colour2, world = 0, uuid[UUID_LEN] = "")
_veh_create(type, Float:x, Float:y, Float:z, Float:r, colour1, colour2, world = 0, const uuid[UUID_LEN] = "")
{
new vehicleid = CreateVehicle(GetVehicleTypeModel(type), x, y, z, r, colour1, colour2, 864000);

Expand Down

0 comments on commit f68da1c

Please sign in to comment.