Skip to content

Commit

Permalink
Avoid processing data in branch that won't use it
Browse files Browse the repository at this point in the history
  • Loading branch information
gilzoide committed Oct 12, 2023
1 parent 7bd9856 commit 9120514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GDObject.mm
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
}

- (void)forwardInvocation:(NSInvocation *)anInvocation {
String methodName = [GDObject godotNameForSelector:anInvocation.selector];
if (_obj) {
String methodName = [GDObject godotNameForSelector:anInvocation.selector];
if (_obj->has_method(methodName)) {
Array args = anInvocation.argumentArray;
Variant result = _obj->callv(methodName, args);
Expand Down

0 comments on commit 9120514

Please sign in to comment.