mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 11:19:48 +02:00
- cleanup of some compiler warnings
This commit is contained in:
@@ -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() = %ul",__FILE__,__FUNCTION__,__LINE__,i,(unsigned long)commandTypes.size());
|
||||
sprintf(szBuf,"In [%s::%s Line: %d] i >= commandTypes.size(), i = %d, commandTypes.size() = %lu",__FILE__,__FUNCTION__,__LINE__,i,(unsigned long)commandTypes.size());
|
||||
throw runtime_error(szBuf);
|
||||
}
|
||||
return commandTypes[i];
|
||||
|
Reference in New Issue
Block a user