summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-09-27 03:39:25 +0200
committereray orçunus <erayorcunus@gmail.com>2020-09-27 03:39:25 +0200
commit9b7642454006f4c6b93d57297f88b2899e3f0077 (patch)
treef6d36d6be1b23ee2dfc4e0a64cbd9d54fd7c4150 /src/core/re3.cpp
parentAdd target arm64 (diff)
downloadre3-9b7642454006f4c6b93d57297f88b2899e3f0077.tar
re3-9b7642454006f4c6b93d57297f88b2899e3f0077.tar.gz
re3-9b7642454006f4c6b93d57297f88b2899e3f0077.tar.bz2
re3-9b7642454006f4c6b93d57297f88b2899e3f0077.tar.lz
re3-9b7642454006f4c6b93d57297f88b2899e3f0077.tar.xz
re3-9b7642454006f4c6b93d57297f88b2899e3f0077.tar.zst
re3-9b7642454006f4c6b93d57297f88b2899e3f0077.zip
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r--src/core/re3.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index a7a0d7f1..13cb6283 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -267,6 +267,7 @@ void PS2AlphaTestChange(int8 displayedValue)
// Important: Make sure to read the warnings/informations in frontendoption.h!!
+// For texts: Either use TheText.Get, or use wcsdup(wchar version of strdup)
void
CustomFrontendOptionsPopulate(void)
{
@@ -369,7 +370,7 @@ CustomFrontendOptionsPopulate(void)
#ifdef FREE_CAM
SWITCH_TO_DISPLAY_MENU
- static const wchar* text = (wchar*)L"FREE CAM";
+ static const wchar* text = (wchar*)wcsdup(L"FREE CAM");
FrontendOptionAddSelect(text, off_on, 2, (int8*)&TheCamera.bFreeCam, false, FreeCamChange, nil, true);
#endif