Instructions Jenkins Doxygen

[Fixed] stability issue 06/1806/1
authorIvojedi <ivojedi@swgemu.com>
Tue, 17 Jun 2014 23:25:25 +0000 (16:25 -0700)
committerIvojedi <ivojedi@swgemu.com>
Tue, 17 Jun 2014 23:25:25 +0000 (16:25 -0700)
Change-Id: I58a9c7cec69c4e7fcae2e33d633269e83245399e

MMOCoreORB/src/server/zone/objects/creature/commands/ForceWeaken1Command.h
MMOCoreORB/src/server/zone/objects/creature/commands/ForceWeaken2Command.h

index 7bf75d3..418d1c4 100755 (executable)
@@ -77,10 +77,12 @@ public:
                        Reference<SceneObject*> object = server->getZoneServer()->getObject(target);
                        ManagedReference<CreatureObject*> creatureTarget = cast<CreatureObject*>( object.get());
 
-                       ManagedReference<Buff*> buff = new Buff(creatureTarget, getNameCRC(), 90, BuffType::JEDI);
-                       buff->setAttributeModifier(System::random(2) * 3, -300);
+                       if (creatureTarget != NULL) {
+                               ManagedReference<Buff*> buff = new Buff(creatureTarget, getNameCRC(), 90, BuffType::JEDI);
+                               buff->setAttributeModifier(System::random(2) * 3, -300);
 
-                       creatureTarget->addBuff(buff);
+                               creatureTarget->addBuff(buff);
+                       }
 
                }
 
index b9bfcd3..893f7ea 100755 (executable)
@@ -77,12 +77,14 @@ public:
                        Reference<SceneObject*> object = server->getZoneServer()->getObject(target);
                        ManagedReference<CreatureObject*> creatureTarget = cast<CreatureObject*>( object.get());
 
-                       ManagedReference<Buff*> buff = new Buff(creatureTarget, getNameCRC(), 120, BuffType::JEDI);
-                       buff->setAttributeModifier(CreatureAttribute::HEALTH, -600);
-                       buff->setAttributeModifier(CreatureAttribute::ACTION, -600);
-                       buff->setAttributeModifier(CreatureAttribute::MIND, -600);
-
-                       creatureTarget->addBuff(buff);
+                       if (creatureTarget != NULL) {
+                               ManagedReference<Buff*> buff = new Buff(creatureTarget, getNameCRC(), 120, BuffType::JEDI);
+                               buff->setAttributeModifier(CreatureAttribute::HEALTH, -600);
+                               buff->setAttributeModifier(CreatureAttribute::ACTION, -600);
+                               buff->setAttributeModifier(CreatureAttribute::MIND, -600);
+
+                               creatureTarget->addBuff(buff);
+                       }
 
                }