Fix warning.
This commit is contained in:
@@ -366,7 +366,7 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out )
|
||||
else if( sValueName.Left(strlen("BGCHANGES"))=="BGCHANGES" || sValueName=="ANIMATIONS" )
|
||||
{
|
||||
BackgroundLayer iLayer = BACKGROUND_LAYER_1;
|
||||
if( 1 == sscanf( sValueName, "BGCHANGES%d", &iLayer ) )
|
||||
if( 1 == sscanf( sValueName, "BGCHANGES%d", (int*)&iLayer ) )
|
||||
iLayer = (BackgroundLayer)(iLayer-1); // #BGCHANGES2 = BACKGROUND_LAYER_2
|
||||
|
||||
bool bValid = iLayer>=0 && iLayer<NUM_BackgroundLayer;
|
||||
|
||||
@@ -46,8 +46,8 @@ const CString LASTGOOD_SUBDIR = "LastGood/";
|
||||
* 10 /* HighScores per Steps */ \
|
||||
* 1024 /* size in bytes of a HighScores XNode */
|
||||
|
||||
const int MAX_DISPLAY_NAME_LENGTH = 12;
|
||||
const int DEFAULT_WEIGHT_POUNDS = 120;
|
||||
const unsigned int MAX_DISPLAY_NAME_LENGTH = 12;
|
||||
const unsigned int DEFAULT_WEIGHT_POUNDS = 120;
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning (disable : 4706) // assignment within conditional expression
|
||||
|
||||
Reference in New Issue
Block a user