summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/socialplayerstab.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-11 00:12:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-11 00:12:09 +0300
commit4fbb944f132eb886a6f5b350e5a14a4fe380aacf (patch)
tree6df2ed96430610ee7c35a7ca4902bbdade0e8e34 /src/gui/widgets/tabs/socialplayerstab.h
parent1dc012a3bb44218778568e8f80c4e9b445802195 (diff)
downloadplus-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.gz
plus-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.bz2
plus-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.xz
plus-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.zip
Add missing checks into gui.
Diffstat (limited to 'src/gui/widgets/tabs/socialplayerstab.h')
-rw-r--r--src/gui/widgets/tabs/socialplayerstab.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/widgets/tabs/socialplayerstab.h b/src/gui/widgets/tabs/socialplayerstab.h
index a7634014b..c0310015f 100644
--- a/src/gui/widgets/tabs/socialplayerstab.h
+++ b/src/gui/widgets/tabs/socialplayerstab.h
@@ -119,9 +119,6 @@ class SocialPlayersTab final : public SocialTab
Avatar* findAvatarbyName(const std::string &name)
{
std::vector<Avatar*> *const avatars = mBeings->getMembers();
- if (!avatars)
- return nullptr;
-
Avatar *ava = nullptr;
std::vector<Avatar*>::const_iterator i = avatars->begin();
const std::vector<Avatar*>::const_iterator i_end = avatars->end();
@@ -141,9 +138,6 @@ class SocialPlayersTab final : public SocialTab
void getPlayersAvatars()
{
std::vector<Avatar*> *const avatars = mBeings->getMembers();
- if (!avatars)
- return;
-
if (actorManager)
{
StringVect names;