Jump to content
  • Advertisement
Sign in to follow this  
Miss

Return false in script dictionary for unsupported object

Recommended Posts

Posted (edited)

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.

Edited by Miss

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!