Advertisement

Return false in script dictionary for unsupported object

Started by July 11, 2018 02:40 PM
1 comment, last by WitchLord 6 years, 4 months ago

There's this code in scriptdictionary: (there's one for int and int64 too)


			else
			{
				// The stored type is an object
				// TODO: Check if the object has a conversion operator to a primitive value
				*(double*)value = 0;
			}
			return true;

However, as it's not implemented and doesn't work, why doesn't it return false here? I changed the code to return false here so that we can detect wrong types added to this in our own code.

Good point. I'll have it updated in the repository too.

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