ZVISION: Add a destructor to Puzzle

This commit is contained in:
richiesams 2013-08-20 20:48:34 -05:00
parent aba3ba634c
commit ad5756fa31

View File

@ -27,11 +27,17 @@
#include "common/list.h"
#include "common/ptr.h"
#include "zvision/actions.h"
namespace ZVision {
class ResultAction;
struct Puzzle {
~Puzzle() {
for (Common::List<ResultAction *>::iterator iter = resultActions.begin(); iter != resultActions.end(); iter++) {
delete (*iter);
}
}
/** How criteria should be decided */
enum CriteriaOperator {
EQUAL_TO,