Codechange: Dereference with x-> instead of (*x). (#14700)
This commit is contained in:
@@ -116,7 +116,7 @@ ScriptController::ScriptController(::CompanyID company) :
|
||||
|
||||
LoadedLibraryList::iterator it = controller.loaded_library.find(library_name);
|
||||
if (it != controller.loaded_library.end()) {
|
||||
fake_class = (*it).second;
|
||||
fake_class = it->second;
|
||||
} else {
|
||||
int next_number = ++controller.loaded_library_count;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ ScriptError::ScriptErrorMapString ScriptError::error_map_string = ScriptError::S
|
||||
|
||||
ScriptErrorMap::iterator it = error_map.find(internal_string_id);
|
||||
if (it == error_map.end()) return ERR_UNKNOWN;
|
||||
return (*it).second;
|
||||
return it->second;
|
||||
}
|
||||
|
||||
/* static */ void ScriptError::RegisterErrorMap(StringID internal_string_id, ScriptErrorType ai_error_msg)
|
||||
|
||||
Reference in New Issue
Block a user