diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-11 00:12:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-11 00:12:09 +0300 |
commit | 4fbb944f132eb886a6f5b350e5a14a4fe380aacf (patch) | |
tree | 6df2ed96430610ee7c35a7ca4902bbdade0e8e34 /src/gui/widgets/tabs/socialnavigationtab.h | |
parent | 1dc012a3bb44218778568e8f80c4e9b445802195 (diff) | |
download | manaverse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.gz manaverse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.bz2 manaverse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.xz manaverse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.zip |
Add missing checks into gui.
Diffstat (limited to 'src/gui/widgets/tabs/socialnavigationtab.h')
-rw-r--r-- | src/gui/widgets/tabs/socialnavigationtab.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/gui/widgets/tabs/socialnavigationtab.h b/src/gui/widgets/tabs/socialnavigationtab.h index b649f2e2a..b4ad01128 100644 --- a/src/gui/widgets/tabs/socialnavigationtab.h +++ b/src/gui/widgets/tabs/socialnavigationtab.h @@ -170,7 +170,7 @@ class SocialNavigationTab final : public SocialTab return; std::vector<Avatar*> *const avatars = mBeings->getMembers(); - if (!avatars || avatars->size() <= static_cast<size_t>(num)) + if (avatars->size() <= static_cast<size_t>(num)) return; const Avatar *const ava = avatars->at(num); @@ -184,8 +184,6 @@ class SocialNavigationTab final : public SocialTab return; std::vector<Avatar*> *const avatars = mBeings->getMembers(); - if (!avatars) - return; const Map *const map = socialWindow->getMap(); if (!map) @@ -220,9 +218,6 @@ class SocialNavigationTab final : public SocialTab return -1; std::vector<Avatar*> *const avatars = mBeings->getMembers(); - if (!avatars) - return -1; - const Map *const map = socialWindow->getMap(); if (!map) return -1; @@ -255,10 +250,6 @@ class SocialNavigationTab final : public SocialTab return; std::vector<Avatar*> *const avatars = mBeings->getMembers(); - - if (!avatars) - return; - const MapItem *const portal = map->findPortalXY(x, y); if (!portal) return; @@ -288,10 +279,6 @@ class SocialNavigationTab final : public SocialTab return; std::vector<Avatar*> *const avatars = mBeings->getMembers(); - - if (!avatars) - return; - std::vector<Avatar*>::iterator i = avatars->begin(); const std::vector<Avatar*>::iterator i_end = avatars->end(); |