Remove asserts and make cppcheck happy.

This commit is contained in:
lotodore
2015-01-13 22:21:11 +01:00
parent a212e5c037
commit 6dff34a589
3 changed files with 1 additions and 12 deletions
+1 -3
View File
@@ -71,9 +71,7 @@ MyAvatarLabel::~MyAvatarLabel()
void MyAvatarLabel::contextMenuEvent ( QContextMenuEvent *event )
{
assert(myW->getSession()->getCurrentGame());
if (myW->getSession()->isNetworkClientRunning()) {
if (myW->getSession()->getCurrentGame() && myW->getSession()->isNetworkClientRunning()) {
boost::shared_ptr<PlayerInterface> humanPlayer = myW->getSession()->getCurrentGame()->getSeatsList()->front();
//only active players are allowed to start a vote