Skip to content
Permalink
Browse files

ULTIMA8: Use a const iterator in const function.

I'm sure I'll get this engine perfectly const-correct eventually.
  • Loading branch information
mduggan committed Mar 23, 2020
1 parent 9ca3151 commit ba65052fd6b63e6144f7439de09d0e4668d2032a
Showing with 1 addition and 1 deletion.
  1. +1 −1 engines/ultima/ultima8/filesys/file_system.cpp
@@ -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()) {

0 comments on commit ba65052

Please sign in to comment.
You can’t perform that action at this time.