Skip to content

Commit

Permalink
DM: Fix a bug in f288_getStringFromInteger
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke authored and Bendegúz Nagy committed Aug 26, 2016
1 parent 5cef0e6 commit 9d5b3f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions engines/dm/champion.cpp
Expand Up @@ -250,8 +250,11 @@ uint16 ChampionMan::M70_handSlotIndex(uint16 slotBoxIndex) {
Common::String ChampionMan::f288_getStringFromInteger(uint16 val, bool padding, uint16 paddingCharCount) {
Common::String valToStr = Common::String::format("%d", val);
Common::String result;
for (int16 i = 0, end = paddingCharCount - valToStr.size(); i < end; ++i)
result += ' ';

if (padding) {
for (int16 i = 0, end = paddingCharCount - valToStr.size(); i < end; ++i)
result += ' ';
}

return result += valToStr;
}
Expand Down

0 comments on commit 9d5b3f5

Please sign in to comment.