1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 18:07:14 +01:00

Minor adjustments in functions that convert skin, vehicle, weapon name to identifier.

This commit is contained in:
Sandu Liviu Catalin 2016-07-28 00:15:59 +03:00
parent 7735070ef8
commit 0b6f817e1f
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ Int32 GetSkinID(CCStr name)
return SQMOD_UNKNOWN; return SQMOD_UNKNOWN;
} }
// Grab the actual length of the string // 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 // Get the most significant characters used to identify a skin
CharT a = str[0], b = 0, c = 0, d = str[len-1]; CharT a = str[0], b = 0, c = 0, d = str[len-1];
// Look for deeper specifiers // Look for deeper specifiers

View File

@ -64,7 +64,7 @@ Int32 GetAutomobileID(CSStr name)
return SQMOD_UNKNOWN; return SQMOD_UNKNOWN;
} }
// Grab the actual length of the string // 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 // Get the most significant characters used to identify a vehicle
CharT a = str[0], b = 0, c = 0, d = str[len-1]; CharT a = str[0], b = 0, c = 0, d = str[len-1];
// Look for deeper specifiers // Look for deeper specifiers

View File

@ -60,7 +60,7 @@ Int32 GetWeaponID(CCStr name)
return SQMOD_UNKNOWN; return SQMOD_UNKNOWN;
} }
// Grab the actual length of the string // 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 // Get the most significant characters used to identify a weapon
CharT a = str[0], b = 0, c = 0, d = str[len-1]; CharT a = str[0], b = 0, c = 0, d = str[len-1];
// Look for deeper specifiers // Look for deeper specifiers