Commit ad61025
committed
fix: upgrade panel not properly comparing item for cancel
The Upgrade Panel was just exiting any time GC objects got
updated. We can instead use the ItemDefIndex because
upgrades persist across items of the same item def.
This fixes an issue where party invites could be abused
to prevent players from upgrading items in MvM, and it
also fixes a bug where unrelated inventory updates would
always close you out of the menu, as well as lobby updates
(players disconnecting/reconnecting)
ref: ValveSoftware/Source-1-Games#42881 parent 7278536 commit ad61025
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
| 719 | + | |
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
| 1152 | + | |
1153 | 1153 | | |
1154 | 1154 | | |
1155 | 1155 | | |
| |||
0 commit comments