diff options
author | Strangerke | 2016-08-23 22:08:51 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 5bd446407690f00dd4282c9840e9c82014bc2f52 (patch) | |
tree | 32d794f6805b281b32d31e12ed68fe1459156a03 /engines/dm/inventory.cpp | |
parent | 857d4e72ed28c762bb63a47408743885c6c5d934 (diff) | |
download | scummvm-rg350-5bd446407690f00dd4282c9840e9c82014bc2f52.tar.gz scummvm-rg350-5bd446407690f00dd4282c9840e9c82014bc2f52.tar.bz2 scummvm-rg350-5bd446407690f00dd4282c9840e9c82014bc2f52.zip |
DM: Fix some more GCC warnings
Diffstat (limited to 'engines/dm/inventory.cpp')
-rw-r--r-- | engines/dm/inventory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/dm/inventory.cpp b/engines/dm/inventory.cpp index 2c10ded1cf..e941663d49 100644 --- a/engines/dm/inventory.cpp +++ b/engines/dm/inventory.cpp @@ -553,8 +553,8 @@ void InventoryMan::f342_drawPanelObject(Thing thingToDraw, bool pressingEye) { _g422_objDescTextYpos = 87; - uint16 potentialAttribMask; - uint16 actualAttribMask; + uint16 potentialAttribMask = 0; + uint16 actualAttribMask = 0; switch (thingType) { case k5_WeaponThingType: { potentialAttribMask = k0x0008_DescriptionMaskCursed | k0x0002_DescriptionMaskPoisoned | k0x0004_DescriptionMaskBroken; @@ -588,9 +588,9 @@ void InventoryMan::f342_drawPanelObject(Thing thingToDraw, bool pressingEye) { case k10_JunkThingType: { if ((iconIndex >= k8_IconIndiceJunkWater) && (iconIndex <= k9_IconIndiceJunkWaterSkin)) { potentialAttribMask = 0; - char *descString_EN_ANY[4] = {"(EMPTY)", "(ALMOST EMPTY)", "(ALMOST FULL)", "(FULL)"}; - char *descString_DE_DEU[4] = {"(LEER)", "(FAST LEER)", "(FAST VOLL)", "(VOLL)"}; - char *descString_FR_FRA[4] = {"(VIDE)", "(PRESQUE VIDE)", "(PRESQUE PLEINE)", "(PLEINE)"}; + const char *descString_EN_ANY[4] = {"(EMPTY)", "(ALMOST EMPTY)", "(ALMOST FULL)", "(FULL)"}; + const char *descString_DE_DEU[4] = {"(LEER)", "(FAST LEER)", "(FAST VOLL)", "(VOLL)"}; + const char *descString_FR_FRA[4] = {"(VIDE)", "(PRESQUE VIDE)", "(PRESQUE PLEINE)", "(PLEINE)"}; Junk *junk = (Junk *)rawThingPtr; switch (_vm->getGameLanguage()) { // localized |