We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4d7d5 commit abc5aa0Copy full SHA for abc5aa0
src/unrealsdk/unreal/structs/fstring.cpp
@@ -74,8 +74,10 @@ UnmanagedFString::operator std::wstring() const {
74
return std::wstring{this->operator std::wstring_view()};
75
}
76
UnmanagedFString::operator std::wstring_view() const {
77
+ // You'd think data == nullptr implies size == 0, but occasionally during game shutdown I've
78
+ // seen otherwise.
79
auto size = this->size();
- if (size == 0) {
80
+ if (size == 0 || this->data == nullptr) {
81
return L"";
82
83
0 commit comments