mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
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:
parent
0e97cc1712
commit
eb712d25dc
4 changed files with 19 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue