mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +01:00
Minor adjustments in functions that convert skin, vehicle, weapon name to identifier.
This commit is contained in:
parent
7735070ef8
commit
0b6f817e1f
@ -77,7 +77,7 @@ Int32 GetSkinID(CCStr name)
|
||||
return SQMOD_UNKNOWN;
|
||||
}
|
||||
// Grab the actual length of the string
|
||||
const Uint32 len = static_cast< Uint32 >(str.length());
|
||||
const Uint32 len = ConvTo< Uint32 >::From(str.length());
|
||||
// Get the most significant characters used to identify a skin
|
||||
CharT a = str[0], b = 0, c = 0, d = str[len-1];
|
||||
// Look for deeper specifiers
|
||||
|
@ -64,7 +64,7 @@ Int32 GetAutomobileID(CSStr name)
|
||||
return SQMOD_UNKNOWN;
|
||||
}
|
||||
// Grab the actual length of the string
|
||||
const Uint32 len = static_cast< Uint32 >(str.length());
|
||||
const Uint32 len = ConvTo< Uint32 >::From(str.length());
|
||||
// Get the most significant characters used to identify a vehicle
|
||||
CharT a = str[0], b = 0, c = 0, d = str[len-1];
|
||||
// Look for deeper specifiers
|
||||
|
@ -60,7 +60,7 @@ Int32 GetWeaponID(CCStr name)
|
||||
return SQMOD_UNKNOWN;
|
||||
}
|
||||
// Grab the actual length of the string
|
||||
const Uint32 len = static_cast< Uint32 >(str.length());
|
||||
const Uint32 len = ConvTo< Uint32 >::From(str.length());
|
||||
// Get the most significant characters used to identify a weapon
|
||||
CharT a = str[0], b = 0, c = 0, d = str[len-1];
|
||||
// Look for deeper specifiers
|
||||
|
Loading…
x
Reference in New Issue
Block a user