Step through the code with the debugger and find out where it crashes.
By the way,
LEngine::Sprites() is completely meaningless. Take a look at the variable scopes...
window = new sf::RenderWindow(sf::VideoMode(800, 600, 32), "RPG");
if(!window)
return false;
return true;
This code is questionable, too. First, you should never use
new with raw pointers. Use automatic variables (
sf::RenderWindow instead of
sf::RenderWindow*), or -- if really necessary -- smart pointers. Second, the
new operator does never return a null pointer. Third, the statement could be simplified to
return window; or
return window != nullptr (but as mentioned, it's useless anyway).