Jump to content

(Error) control may reach end of non-void


Go to solution Solved by Rook,

3 posts in this topic

Recommended Posts

Posted

I wanted to make a patcher and this happened when I compiled 

at line 8: I get this control may reach the end of non-void

 

  1. %hook UserInfo
  2. -(int) getAimForCue: fp12 {
  3. if(GetPrefBool(@"kgetAimForCue"))
  4. return 15;
  5. fp12 = 15;
  6. %orig
  7. }
  8. %end
  9.  
  • Solution
Posted

In line 6:

%orig();

or

return %orig;

Posted
3 minutes ago, DiDA said:

In line 6:

%orig();

or

return %orig;

 

Thanks the return %orig; worked.

 

but now i got another error regarding "preference/preference.h not found"  should I make another topic or ask it here.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines