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:
Matthew Duggan 2020-03-23 22:38:35 +09:00
parent 9ca3151579
commit ba65052fd6

View File

@ -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()) {