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