mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-19 10:41:55 +00:00
ULTIMA8: Use a const iterator in const function.
I'm sure I'll get this engine perfectly const-correct eventually.
This commit is contained in:
parent
9ca3151579
commit
ba65052fd6
@ -271,7 +271,7 @@ bool FileSystem::rewrite_virtual_path(string &vfn) const {
|
||||
|
||||
while ((pos = vfn.rfind('/', pos)) != Std::string::npos) {
|
||||
// perr << vfn << ", " << vfn.substr(0, pos) << ", " << pos << Std::endl;
|
||||
Std::map<Common::String, string>::iterator p = _virtualPaths.find(
|
||||
Std::map<Common::String, string>::const_iterator p = _virtualPaths.find(
|
||||
vfn.substr(0, pos));
|
||||
|
||||
if (p != _virtualPaths.end()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user