OSDN Git Service

deleted define of the event
[liveml/LiveML.git] / src / livemlrunner.h
index 660b1fd..b6b8c63 100644 (file)
@@ -230,7 +230,7 @@ public:
   {
     DCODE(printf("LMLActorObject::setAction(%d)\n", type);)
     ActionParser *action = parser->actionContainer[type];
-    if (action == NULL) return false;
+    if (action->tag == NULL) return false;
 
     setAction(action);
     return true;
@@ -258,7 +258,7 @@ public:
   {
     DCODE(printf("LMLActorObject::setEvent(%d)\n", type);)
     EventParser *event = parser->eventContainer[type];
-    if (event == NULL) return false;
+       if (event->tag == NULL) return false;
 
     return setEvent(event);
   }