Fixed primitives, fixed a random crash in ActionStack.cpp, added a way to search wallpaers in theme folder before to search them in the default folder, improved the keyword to retrieve the highest power and toughness of creatures in play, now it's possibile to use "pwr:" and "ths:" instead of "power:" and "toughness:", so it's possibile to use this keyword in variable{} construct too.
This commit is contained in:
@@ -877,7 +877,7 @@ int ActionStack::has(MTGAbility * ability)
|
||||
{
|
||||
for (size_t i = 0; i < mObjects.size(); i++)
|
||||
{
|
||||
if (((Interruptible *) mObjects[i])->type == ACTION_ABILITY)
|
||||
if (mObjects[i] && (((Interruptible *) mObjects[i])->type == ACTION_ABILITY)) // Fixed a random crash occurring when mObjects[i] is null...
|
||||
{
|
||||
StackAbility * action = ((StackAbility *) mObjects[i]);
|
||||
if (action->state == NOT_RESOLVED && action->ability == ability)
|
||||
|
||||
Reference in New Issue
Block a user