From: <ral...@us...> - 2014-04-12 22:04:16
|
Revision: 9442 http://sourceforge.net/p/planeshift/code/9442 Author: ralphcampbell Date: 2014-04-12 22:04:14 +0000 (Sat, 12 Apr 2014) Log Message: ----------- Fix CID 1138760 Modified Paths: -------------- trunk/src/server/scripting.cpp Modified: trunk/src/server/scripting.cpp =================================================================== --- trunk/src/server/scripting.cpp 2014-04-12 21:58:34 UTC (rev 9441) +++ trunk/src/server/scripting.cpp 2014-04-12 22:04:14 UTC (rev 9442) @@ -466,12 +466,13 @@ void Run(MathEnvironment* env, gemActor* target, ActiveSpell* asp) { - Multiplier* mod = NULL; + Multiplier* mod; if(type == "atk") mod = &target->GetCharacterData()->AttackModifier(); else if(type == "def") mod = &target->GetCharacterData()->DefenseModifier(); - CS_ASSERT(mod); + else + return; float val = value->Evaluate(env); mod->Buff(asp, val); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |