Field becomes nullptr when comes out of function space

Cybeaster
Tue, 23 Feb 2021 08:45:17 +0000
C++

I have a field in class that stores a references to objects and I have a function with 2 methods in it.
I pass 2 null pointers to the first function to assign values to them, and after I pass these pointers to second function.
The problem is that after completion of the first function these members become nullptr, and I pass nullptr to the second function.
http://joxi.ru/VrwkBelT4zRObr - main function
Joxi (205 kb) закачан 23 февраля 2021 г. Joxi -the first function
Joxi (251 kb) закачан 23 февраля 2021 г. Joxi - the second function
Joxi (170 kb) закачан 23 февраля 2021 г. Joxi - Struct with refs

2 posts - 1 participant