Crash in argument matching

Started by
2 comments, last by WitchLord 5 years, 4 months ago

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.

Advertisement

Thanks. I'll have this fixed. 

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I've fixed this in revision 2564

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement