mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 06:43:54 -07:00
fix typo; don't point from an item to itself
This commit is contained in:
parent
c86a1ed4f6
commit
43d516672a
3 changed files with 15 additions and 11 deletions
|
|
@ -581,7 +581,7 @@ ReturnMessage::ReturnCode ServerSocket::cmdCreateArrow(const QList<QVariant> &pa
|
|||
return ReturnMessage::ReturnContextError;
|
||||
Card *startCard = startZone->getCard(params[2].toInt(), false);
|
||||
Card *targetCard = targetZone->getCard(params[5].toInt(), false);
|
||||
if (!startCard || !targetCard)
|
||||
if (!startCard || !targetCard || (startCard == targetCard))
|
||||
return ReturnMessage::ReturnContextError;
|
||||
|
||||
emit broadcastEvent(QString("create_arrow|%1|%2|%3|%4|%5|%6")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue