diff --git a/libsnes/bsnes/nall/string/cast.hpp b/libsnes/bsnes/nall/string/cast.hpp index 7c7e276bb9..c7874515c6 100644 --- a/libsnes/bsnes/nall/string/cast.hpp +++ b/libsnes/bsnes/nall/string/cast.hpp @@ -131,13 +131,17 @@ template<> struct stringify { }; template<> struct stringify { - const string &value; + //zero 17-jun-2015 - this is a bug. dangling reference can and will go out of scope + //const string &value; + string value; operator const char*() const { return value; } stringify(const string &value) : value(value) {} }; template<> struct stringify { - const string &value; + //zero 17-jun-2015 - this is a bug. dangling reference can and will go out of scope + //const string &value; + string value; operator const char*() const { return value; } stringify(const string &value) : value(value) {} };