Update variables.cpp

changed (.) operator to -> operator