Skip to content

Commit fa00524

Browse files
committed
Fixed issue which would break WIndows/Linux builds
need dem no-scope strings
1 parent 4de8642 commit fa00524

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pseuthe/src/App.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,10 @@ void App::saveScreenshot()
431431

432432
//get the "Pictures" folder if we are on OS X
433433
//as we can't save to working directory (which would be "Applications")
434+
std::string picturesPath("");
434435
#ifdef __APPLE__
435436
std::string user = getenv("USER");
436-
std::string picturesPath = "/Users/" + user + "/Pictures/";
437+
picturesPath = "/Users/" + user + "/Pictures/";
437438
#endif
438439

439440
sf::Image screenCap = m_renderWindow.capture();

0 commit comments

Comments
 (0)