mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed uninitialized variable in savegame name entering menu.
This commit is contained in:
parent
e1e2b01c84
commit
2a0104092d
2 changed files with 2 additions and 3 deletions
|
@ -717,7 +717,6 @@ class DTextEnterMenu : public DMenu
|
|||
|
||||
FString mEnterString;
|
||||
int mEnterSize;
|
||||
int mEnterPos;
|
||||
bool mInputGridOkay;
|
||||
int InputGridX;
|
||||
int InputGridY;
|
||||
|
|
|
@ -67,7 +67,7 @@ DTextEnterMenu::DTextEnterMenu(DMenu *parent, FFont *dpf, FString textbuffer, in
|
|||
: DMenu(parent)
|
||||
{
|
||||
mEnterString = textbuffer;
|
||||
mEnterPos = maxlen;
|
||||
mEnterSize = maxlen;
|
||||
mInputGridOkay = (showgrid && (m_showinputgrid == 0)) || (m_showinputgrid >= 1);
|
||||
if (mEnterString.Len() > 0)
|
||||
{
|
||||
|
@ -116,7 +116,7 @@ bool DTextEnterMenu::Responder(event_t *ev)
|
|||
char ch = (char)ev->data1;
|
||||
if ((ev->subtype == EV_GUI_KeyDown || ev->subtype == EV_GUI_KeyRepeat) && ch == '\b')
|
||||
{
|
||||
if (mEnterPos > 0)
|
||||
if (mEnterString.Len() > 0)
|
||||
{
|
||||
mEnterString.DeleteLastCharacter();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue