Codechange: set VLI.index through accessor function

This commit is contained in:
Rubidium
2025-02-02 08:55:14 +01:00
committed by rubidium42
parent 4e84d032b8
commit ac54ff368c
3 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -2270,7 +2270,7 @@ public:
{
if (!gui_scope && HasBit(data, 31) && this->vli.type == VL_SHARED_ORDERS) {
/* Needs to be done in command-scope, so everything stays valid */
this->vli.index = GB(data, 0, 20);
this->vli.SetIndex(GB(data, 0, 20));
this->window_number = this->vli.ToWindowNumber();
this->vehgroups.ForceRebuild();
return;