mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-27 12:09:41 +00:00
Merge pull request #2606 from Capostrophic/quickkeys
Make sure quick key 0 (tenth quick key) shortcut is not saved or loaded
This commit is contained in:
commit
2fa4aa9f3f
1 changed files with 4 additions and 2 deletions
|
@ -504,7 +504,8 @@ namespace MWGui
|
||||||
|
|
||||||
ESM::QuickKeys keys;
|
ESM::QuickKeys keys;
|
||||||
|
|
||||||
for (int i=0; i<10; ++i)
|
// NB: The quick key with index 9 always has Hand-to-Hand type and must not be saved
|
||||||
|
for (int i=0; i<9; ++i)
|
||||||
{
|
{
|
||||||
ItemWidget* button = mKey[i].button;
|
ItemWidget* button = mKey[i].button;
|
||||||
|
|
||||||
|
@ -553,7 +554,8 @@ namespace MWGui
|
||||||
int i=0;
|
int i=0;
|
||||||
for (ESM::QuickKeys::QuickKey& quickKey : keys.mKeys)
|
for (ESM::QuickKeys::QuickKey& quickKey : keys.mKeys)
|
||||||
{
|
{
|
||||||
if (i >= 10)
|
// NB: The quick key with index 9 always has Hand-to-Hand type and must not be loaded
|
||||||
|
if (i >= 9)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mSelected = &mKey[i];
|
mSelected = &mKey[i];
|
||||||
|
|
Loading…
Reference in a new issue