Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualBlackMoons

Posted 11 August 2013 - 06:27 PM

Ah sorry.

Missed a line, Heres the actual function. (Its used elsewhere in the program and works fine, But it crashes ANY time I use it on a string past by copy from angelscript as a function pram, even in other places in my (rather complex) program)

inline std::string WStringToString(const std::wstring &ws)
{
	std::string s = std::string(ws.begin(), ws.end());
	return s;
}

#1BlackMoons

Posted 11 August 2013 - 06:23 PM

Ah sorry.

Missed a line, Heres the actual function. (Its used elsewhere in the program and works fine, But it crashes ANY time I use it on a string returned from angelscript, even in other places in my (rather complex) program)

inline std::string WStringToString(const std::wstring &ws)
{
	std::string s = std::string(ws.begin(), ws.end());
	return s;
}

PARTNERS