Instructions Jenkins Doxygen

[fixed] stability issue 10/5310/1
authorVictor Popovici <theanswer@swgemu.com>
Sat, 7 Jan 2017 23:15:07 +0000 (00:15 +0100)
committerVictor Popovici <theanswer@swgemu.com>
Sat, 7 Jan 2017 23:15:07 +0000 (00:15 +0100)
Change-Id: I2b582e0f0f5b61f647d645f3345819bdefb2ae84

MMOCoreORB/src/server/zone/objects/mission/DestroyMissionObjectiveImplementation.cpp

index 5b2d4a3..de83496 100644 (file)
@@ -90,6 +90,9 @@ Vector3 DestroyMissionObjectiveImplementation::findValidSpawnPosition(Zone* zone
        if(mission == NULL)
                return position;
 
+       if (zone == NULL)
+               return position;
+
        float newX = spawnActiveArea->getPositionX() + (256.0f - (float) System::random(512));
        float newY = spawnActiveArea->getPositionY() + (256.0f - (float) System::random(512));
 
@@ -146,6 +149,9 @@ void DestroyMissionObjectiveImplementation::spawnLair() {
 
        Zone* zone = spawnActiveArea->getZone();
 
+       if (zone == NULL)
+               return;
+
        Locker locker(spawnActiveArea);
 
        spawnActiveArea->destroyObjectFromWorld(true);