2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Update3 for MSVC10

Fix some const problems.
This commit is contained in:
Skoader
2012-04-22 13:13:32 +10:00
parent bc74371c57
commit f8c3f7ac31
9 changed files with 19 additions and 16 deletions

View File

@ -218,12 +218,12 @@ void plAgeDescription::SetAgeNameFromPath( const char *path )
}
// Construct our name from the path
char *pathSep1 = strrchr( path, '\\' );
char *pathSep2 = strrchr( path, '/' );
const char *pathSep1 = strrchr( path, '\\' );
const char *pathSep2 = strrchr( path, '/' );
if( pathSep2 > pathSep1 )
pathSep1 = pathSep2;
if( pathSep1 == nil )
pathSep1 = (char *)path;
pathSep1 = path;
else
pathSep1++; // Get past the actual character we found