From 0b6f817e1fa7a13a8d7ef0af4090c393af838ca8 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 28 Jul 2016 00:15:59 +0300 Subject: [PATCH] Minor adjustments in functions that convert skin, vehicle, weapon name to identifier. --- source/Misc/Player.cpp | 2 +- source/Misc/Vehicle.cpp | 2 +- source/Misc/Weapon.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Misc/Player.cpp b/source/Misc/Player.cpp index 102cf1c9..a429b75c 100644 --- a/source/Misc/Player.cpp +++ b/source/Misc/Player.cpp @@ -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 diff --git a/source/Misc/Vehicle.cpp b/source/Misc/Vehicle.cpp index b23309f7..b82af43b 100644 --- a/source/Misc/Vehicle.cpp +++ b/source/Misc/Vehicle.cpp @@ -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 diff --git a/source/Misc/Weapon.cpp b/source/Misc/Weapon.cpp index ccb96430..e4fbb279 100644 --- a/source/Misc/Weapon.cpp +++ b/source/Misc/Weapon.cpp @@ -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