mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 00:06:36 +00:00
specify the string copy(n) construction parameters
(necessary for some compilers)
This commit is contained in:
parent
a155a3b369
commit
00fd6b46ea
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user