Fixed dialog bad cancel command

This commit is contained in:
smallmodel 2023-12-31 23:43:05 +01:00
parent cb36015a38
commit 46e7f29820
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -3865,7 +3865,7 @@ void UI_CreateDialog(
dlg->Create(NULL, rect, title, bgColor, UHudColor);
dlg->LinkCvar(cvarname);
dlg->SetOKCommand(command);
dlg->SetCancelCommand(command);
dlg->SetCancelCommand(cancelCommand);
dlg->SetLabelMaterial(uWinMan.RegisterShader(shader));
dlg->SetOkMaterial(uWinMan.RegisterShader(okshader));