Fix so rules not replaced when updated

This commit is contained in:
drdev
2013-11-23 03:05:28 +00:00
parent c4db463338
commit ca5e20b1a9
2 changed files with 6 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ public enum CCardScript implements ICDoc {
updateDirtyFlag();
CardRules newRules = CardRules.fromScript(Arrays.asList(text.split("\n")));
Singletons.getMagicDb().getCommonCards().getEditor().putCard(newRules);
newRules = Singletons.getMagicDb().getCommonCards().getEditor().putCard(newRules);
this.currentCard = Singletons.getMagicDb().getCommonCards().getCard(newRules.getName());
VWorkshopCatalog.SINGLETON_INSTANCE.getCardManager().repaint();