Instructions Jenkins Doxygen

[Fixed] stability issue 93/2193/1
authorIvojedi <ivojedi@swgemu.com>
Wed, 30 Jul 2014 17:35:16 +0000 (10:35 -0700)
committerIvojedi <ivojedi@swgemu.com>
Wed, 30 Jul 2014 17:35:16 +0000 (10:35 -0700)
Change-Id: Id4cef3ac4ba204dd4b9db64482a2550aede90bf0

MMOCoreORB/src/server/zone/packets/object/PlayersNearYou.h

index f5bcf64..f095d65 100644 (file)
@@ -84,13 +84,17 @@ public:
 
                insertInt(race); // Race ID
 
-               PlanetManager* planetManager = player->getZone()->getPlanetManager();
-               CityRegion* cityRegion = planetManager->getRegionAt(player->getWorldPositionX(), player->getWorldPositionY());
-
                String regionName = "";
 
-               if (cityRegion != NULL) {
-                       regionName = cityRegion->getRegionName();
+               Zone* zone = player->getZone();
+
+               if (zone != NULL) {
+                       PlanetManager* planetManager = zone->getPlanetManager();
+                       CityRegion* cityRegion = planetManager->getRegionAt(player->getWorldPositionX(), player->getWorldPositionY());
+
+                       if (cityRegion != NULL) {
+                               regionName = cityRegion->getRegionName();
+                       }
                }
 
                insertAscii(regionName); //Region Name