mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Ensure that restoreOldZones in Mobile Forge only accepts correct objects when processing player InfoTabs (otherwise the game may crash or hang under certain circumstances when an unexpectedly filled Object set is passed in VStack).
This commit is contained in:
@@ -303,7 +303,9 @@ public class MatchController extends AbstractGuiGame {
|
||||
public void restoreOldZones(final Map<PlayerView, Object> playersToRestoreZonesFor) {
|
||||
for (final Entry<PlayerView, Object> player : playersToRestoreZonesFor.entrySet()) {
|
||||
final VPlayerPanel playerPanel = view.getPlayerPanel(player.getKey());
|
||||
playerPanel.setSelectedTab((InfoTab)player.getValue());
|
||||
if (player.getValue() == null || player.getValue() instanceof InfoTab) {
|
||||
playerPanel.setSelectedTab((InfoTab) player.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user