Hey all!
I am quite a beginner and have a very beginner-ish question.
I have a structure containing an int value.
I also have a pointer to an instance of that structure and want to increase the int value.
My code:
orCode:pointer->value = pointer->value + 1;
crashes the second time I execute it.Code:pointer->value++;
Always.
I am using the same code in another function, with the same pointer, there it works.
The pointer value is not null, I know that for sure.
The int value is 1 at the time of the crash.
Is there a general reason why such a simple command could crash?
If not I'll keep digging, but that thing has kept me occupied for two days now and I'm feeling slightly ridiculous.
Thanks for any help and have a nice day!