Skip to content

Commit 5c55006

Browse files
committed
employ Martins fix for tween test.
1 parent 20650d5 commit 5c55006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d-ui/CCBReader/CCAnimationManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ - (CCBSequence*)sequenceFromSequenceId:(int)seqId {
171171
- (CCActionInterval*)actionFromKeyframe0:(CCBKeyframe*)kf0 andKeyframe1:(CCBKeyframe*)kf1 propertyName:(NSString*)name node:(CCNode*)node {
172172
float duration = kf1.time - kf0.time;
173173

174-
if(kf0.easingType==kCCBKeyframeEasingInstant) {
174+
if(kf0 && kf0.easingType==kCCBKeyframeEasingInstant) {
175175
duration = 0;
176176
}
177177

0 commit comments

Comments
 (0)