Codechange: rename function to better describe what it is doing

This commit is contained in:
Rubidium
2023-06-11 21:48:07 +02:00
committed by rubidium42
parent f86500df92
commit 82b434b589
5 changed files with 12 additions and 10 deletions

View File

@@ -16,6 +16,7 @@
#include "gfx_func.h"
#include "string_func.h"
#include "company_base.h"
#include "company_func.h"
#include "company_manager_face.h"
#include "strings_func.h"
#include "zoom_func.h"
@@ -141,7 +142,7 @@ void ErrorMessageData::CopyOutDParams()
if (this->textref_stack_size > 0) StopTextRefStackUsage();
if (this->detailed_msg == STR_ERROR_OWNED_BY) {
CompanyID company = (CompanyID)GetDParamX(this->decode_params, 2);
CompanyID company = (CompanyID)GetDParamX(this->decode_params, OWNED_BY_OWNER_IN_PARAMETERS_OFFSET);
if (company < MAX_COMPANIES) face = company;
}
}