Addresses crash scenario where too many cards were being loaded in a game.

- Too many iterations that fill up the server's memory trying to (1) render the deck hash and (2) building up a string of the deck contents
This commit is contained in:
ZeldaZach 2024-04-28 22:14:24 -04:00
parent 0e97cc1712
commit eb712d25dc
4 changed files with 19 additions and 7 deletions

View file

@ -173,6 +173,7 @@ class DeckList : public QObject
{
Q_OBJECT
private:
static constexpr unsigned int MAX_CARDS_TO_HASH = 100000;
QString name, comments;
QString deckHash;
QMap<QString, SideboardPlan *> sideboardPlans;