inkle / ink-unity-integration

Unity integration for the open source ink narrative scripting language.
http://www.inklestudios.com/ink
Other
570 stars 99 forks source link

Check is null _defaultGlobalVariables on WriteJson #180

Closed RobertJaskowski closed 1 year ago

RobertJaskowski commented 1 year ago

Fixed an issue when using story.ResetState() _defaultGlobalVariables is null and throws.

tomkail commented 1 year ago

Hi! Thanks for this - but I can't accept it because it belongs in the Ink repo instead. I'm sure Joe would be delighted to merge it in there! This plugin includes the core ink code, which your change is a part of :)