From ae651b87a1db4131733eaccc5736a287a06a0e6b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Jan 2016 19:04:48 +0300 Subject: Add support for add from context menu into chat item links with cards. --- src/being/flooritem.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/being/flooritem.cpp') diff --git a/src/being/flooritem.cpp b/src/being/flooritem.cpp index ae10a57aa..d0d0bf259 100644 --- a/src/being/flooritem.cpp +++ b/src/being/flooritem.cpp @@ -197,3 +197,10 @@ void FloorItem::draw(Graphics *const graphics, } BLOCK_END("FloorItem::draw") } + +int FloorItem::getCard(const int index) const +{ + if (index < 0 || index >= maxCards) + return 0; + return mCards[index]; +} -- cgit v1.2.3-70-g09d2