- cleanup of some compiler warnings

This commit is contained in:
Mark Vejvoda 2010-07-17 06:57:57 +00:00
parent e9e1a317e4
commit 633cb9542d
1 changed files with 1 additions and 1 deletions

View File

@ -613,7 +613,7 @@ const CommandType* UnitType::findCommandTypeById(int id) const{
const CommandType *UnitType::getCommandType(int i) const {
if(i >= commandTypes.size()) {
char szBuf[1024]="";
sprintf(szBuf,"In [%s::%s Line: %d] i >= commandTypes.size(), i = %d, commandTypes.size() = %u",__FILE__,__FUNCTION__,__LINE__,i,commandTypes.size());
sprintf(szBuf,"In [%s::%s Line: %d] i >= commandTypes.size(), i = %d, commandTypes.size() = %ul",__FILE__,__FUNCTION__,__LINE__,i,(unsigned long)commandTypes.size());
throw runtime_error(szBuf);
}
return commandTypes[i];