Hello,
I have a shared_ptr to a sf::Text object, declaration:
std::shared_ptr<sf::Text> title;
But when I want for example to set the character size like so:
title->setCharacterSize(24);
... a exception is thrown:
"this" was "Nullptr" (in Visual Studio 2017)
But, strangely, when I set the font before that, like so:
title->setFont(titleFont);
... the exception still appears at setCharacterSize, setFont works fine!
Do you know why this could happen?