mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
don't crash when an action=nullptr (partial fix for #20)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1455 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
// ----------------------------------------------------------------------------- : ValueEditor
|
||||
|
||||
void ValueEditor::addAction(ValueAction* a) {
|
||||
a->isOnCard(editor().getCard().get());
|
||||
editor().addAction(a);
|
||||
if (a) {
|
||||
a->isOnCard(editor().getCard().get());
|
||||
editor().addAction(a);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user