Jump to content
  • Advertisement
Sign in to follow this  
Miss

Crash in argument matching

Recommended Posts

I have the following crash inside of Angelscript, in asCCompiler::MatchArgument:

image.png.7fa7d1c6a1a28dfb03c45b7d7d41281f.png

Seems like GetBehaviour is returning null because the parameter it's matching there (with paramNum as index) is a funcdef. Perhaps it should just get a null check? The code that seems to trigger it is this:

array<cvar_type> cfuncParams = { cvar_type::String };
AddFunction("give_item", cfuncParams, GiveItemCFunc);

Tested on the latest SVN version.

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!