Skip to content

Commit 75a6598

Browse files
authored
Merge pull request #165 from ultranoobian/development-bugfix-uiUpdate
Fixed UI not updating CP after recruiting operatives
2 parents 78e46b6 + 6c7b15b commit 75a6598

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/dialog/operative/operative.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class operativemaingui
3636
y = 18.5 * GUI_GRID_H + GUI_GRID_Y;
3737
w = 5 * GUI_GRID_W;
3838
h = 1 * GUI_GRID_H;
39-
action = "closeDialog 0";
39+
action = "closeDialog 0; [] spawn {sleep 1;ctrlSetText [1000, format[""%1"",commandpointsblu1]]}";
4040
};
4141
class operative_recruit_button: RscButton
4242
{
@@ -341,4 +341,4 @@ class operativemaingui
341341
// GUI EDITOR OUTPUT END
342342
////////////////////////////////////////////////////////
343343
};
344-
};
344+
};

0 commit comments

Comments
 (0)