c26495 warning: SDL_Rect

  c++
class Texture : public GameEntity {

protected:


  SDL_Rect mClipRect;
}

I got C26495 error. Variable Texture::mClipRect is uninitialized. Always initialize a member variable(type.6)

I added {} at the end but not work. How can I fix this warning?

Source: Windows Questions C++

LEAVE A COMMENT