Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd91a16

Browse files
committed
EngineSettings: Fix bugs with parsing of primary and actionbar
- We don't want to clear the primary stats, since this key is repeatable- Use the SLOT_MAX for upper bound when parsing actionbar
1 parentd71ea91 commitdd91a16

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

‎src/EngineSettings.cpp‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,6 @@ void EngineSettings::HeroClasses::load() {
608608

609609
elseif (infile.key =="primary") {
610610
// @ATTR primary|predefined_string, int : Primary stat name, Default value|Class starts with this value for the specified stat.
611-
current->primary.clear();
612-
current->primary.resize(eset->primary_stats.list.size(),0);
613-
614611
std::string prim_stat =Parse::popFirstString(infile.val);
615612
size_t prim_stat_index = eset->primary_stats.getIndexByID(prim_stat);
616613

@@ -626,7 +623,7 @@ void EngineSettings::HeroClasses::load() {
626623
current->hotkeys.clear();
627624
current->hotkeys.resize(MenuActionBar::SLOT_MAX,0);
628625

629-
for (int i=0; i<12; i++) {
626+
for (int i=0; i < MenuActionBar::SLOT_MAX; i++) {
630627
current->hotkeys[i] =Parse::toPowerID(Parse::popFirstString(infile.val));
631628
}
632629
}

‎src/Version.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FLARE. If not, see http://www.gnu.org/licenses/
3030

3131
#include<SDL.h>
3232

33-
VersionVersionInfo::ENGINE(1,14,198);
33+
VersionVersionInfo::ENGINE(1,14,199);
3434
VersionVersionInfo::MIN(0,0,0);
3535
VersionVersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);
3636

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp