summaryrefslogtreecommitdiff
path: root/src/gui/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-13 22:24:59 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-13 23:15:55 +0300
commitbf1a006a34ba30143c00be899332acedef29575b (patch)
tree996b3d75d1dd4903b3377d2f9e822b6937d45511 /src/gui/socialwindow.cpp
parentd9c0a036a5d480c615d866bf98893906b1e7efab (diff)
downloadmanaplus-bf1a006a34ba30143c00be899332acedef29575b.tar.gz
manaplus-bf1a006a34ba30143c00be899332acedef29575b.tar.bz2
manaplus-bf1a006a34ba30143c00be899332acedef29575b.tar.xz
manaplus-bf1a006a34ba30143c00be899332acedef29575b.zip
Fix possible incorrect memory access.
Diffstat (limited to 'src/gui/socialwindow.cpp')
-rw-r--r--src/gui/socialwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp
index 2d8ecc54f..b2c28e84e 100644
--- a/src/gui/socialwindow.cpp
+++ b/src/gui/socialwindow.cpp
@@ -650,7 +650,7 @@ public:
return;
Map* map = socialWindow->getMap();
- if (!map)
+ if (!map || map->empty())
return;
if (socialWindow->getProcessedPortals())