Access violation on C++ variable, set in BP

The line it breaks on in debug mode is the one where sunrotation is declared. The whole cpp function is those three lines