Author: sveinung
Date: Sat Oct  8 20:37:07 2016
New Revision: 34056

URL: http://svn.gna.org/viewcvs/freeciv?rev=34056&view=rev
Log:
ruledit: don't add action enabler manually.

Use action_enabler_add() to add a recently created action enabler.

See patch #7783

Modified:
    trunk/tools/ruledit/tab_enablers.cpp

Modified: trunk/tools/ruledit/tab_enablers.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/tab_enablers.cpp?rev=34056&r1=34055&r2=34056&view=diff
==============================================================================
--- trunk/tools/ruledit/tab_enablers.cpp        (original)
+++ trunk/tools/ruledit/tab_enablers.cpp        Sat Oct  8 20:37:07 2016
@@ -196,8 +196,7 @@
 
   new_enabler->action = ACTION_MARKETPLACE;
 
-  action_enabler_list_append(action_enablers_for_action(ACTION_MARKETPLACE),
-                             new_enabler);
+  action_enabler_add(new_enabler);
 }
 
 /**************************************************************************


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to