Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

References can't be used with more than one variable.

$
0
0

Well I just learned an important lesson.  References can not be used to point to different variables.  I am trying to refactor everything that is affected.  The function parameters have been changed from references to pointers.   My guess is that the address of operator used in the function call will dismiss the error.   Is this workable?  I am making a different character move using the original function so I need pointers to use the sprite and positioning, etc.

 

 

 


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>