The build comes out fine, but when i press the Exe.. a error shows up in line 9 on GameBackGround.cpp
#include "stdafx.h"
#include "GameBackground.h"
#include "SFML/Graphics.hpp"
#include "Game.h"
GameBackground::GameBackground()
{
Load("images/CourtTest.png");
assert(IsLoaded());
GetSprite().setOrigin(0, 0);
}
GameBackground::~GameBackground()
{
}
void GameBackground::Draw(sf::RenderWindow &renderWindow)
{
VisibleGameObject::Draw(renderWindow);
}
void GameBackground::Update(float elapsedTime)
{
}
Failed to load image, IsLoaded assertion error or something.
Please help!