mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
Qt 4.8 crash fix
This commit is contained in:
parent
c7fa2fe985
commit
61f5cd478d
3 changed files with 13 additions and 7 deletions
|
|
@ -1577,10 +1577,9 @@ void Player::delCounter(int counterId)
|
|||
AbstractCounter *c = counters.value(counterId, 0);
|
||||
if (!c)
|
||||
return;
|
||||
if (c->getName() == "life")
|
||||
playerTarget->delCounter();
|
||||
counters.remove(counterId);
|
||||
|
||||
c->delCounter();
|
||||
counters.remove(counterId);
|
||||
rearrangeCounters();
|
||||
}
|
||||
|
||||
|
|
@ -1590,7 +1589,6 @@ void Player::clearCounters()
|
|||
while (counterIterator.hasNext())
|
||||
counterIterator.next().value()->delCounter();
|
||||
counters.clear();
|
||||
playerTarget->delCounter();
|
||||
}
|
||||
|
||||
ArrowItem *Player::addArrow(const ServerInfo_Arrow &arrow)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue