From 8e3eb8580f6fcca53dc61d39c8656eb937f613cc Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Mon, 6 Jan 2014 18:00:52 +0800 Subject: [PATCH] fix crash in NewEventDispatcherTest.cpp on vs --- .../Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/Cpp/TestCpp/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp b/samples/Cpp/TestCpp/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp index 5f41c4fdd9..b74ff5aaed 100644 --- a/samples/Cpp/TestCpp/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp +++ b/samples/Cpp/TestCpp/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp @@ -753,6 +753,10 @@ void DirectorEventTest::onEnter() { EventDispatcherTestDemo::onEnter(); + _count1 = 0; + _count2 = 0; + _count3 = 0; + _count4 = 0; Size s = Director::getInstance()->getWinSize(); _label1 = Label::createWithTTF("Update: 0", "fonts/arial.ttf", 20);