specify the string copy(n) construction parameters

(necessary for some compilers)
This commit is contained in:
Patrick Parker 2007-04-30 02:57:58 +00:00
parent a155a3b369
commit 00fd6b46ea

View File

@ -242,7 +242,7 @@ game_version::game_version(std::string str) :
offset = str.find_first_not_of("0123456789");
patch = lexical_cast_default<unsigned int>(std::string(str, 0, offset ), 0);
if(offset != std::string::npos) {
extra = std::string(str, offset);
extra = std::string(str, offset, std::string::npos);
}
}