Loaded class losing variables when passed as a parameter

Discussion and help for Easy Save 3
Post Reply
Levgre
Posts: 9
Joined: Mon Apr 06, 2020 5:49 pm

Loaded class losing variables when passed as a parameter

Post by Levgre »

I have a class that only has basic variables such as float, string, and bool. When I pass the class as a parameter for a function some of those float values become 0 when they had just been changed. When I debug the class's values by a direct reference, the values appear as non-zeroes as they should.

This behavior doesn't occur until I load the class using ES3, so it seems to be some sort of bug/issue caused by the saving and loading process. Before the class is loaded, the values are properly retained when the class is passed around as a parameter. The class is nested within other classes so it is just saved within a list, it seems maybethere is some sort of mixup with the reference?

Kind of stumped on this one. Not sure what other details to add right now, any idea what could be causing this?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Loaded class losing variables when passed as a parameter

Post by Joel »

Hi there,

Please could you private message me a basic project and instructions which replicate this? It's not possible for me to understand what is happening from what you've said.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply