Browse Source

Merge pull request #914 from andersonfaaria/outfit-src

Fix wrong parameter name in source
Henrique Santiago 3 years ago
parent
commit
81a705096a
No account linked to committer's email address
2 changed files with 4 additions and 4 deletions
  1. 3
    3
      src/client/game.cpp
  2. 1
    1
      src/client/game.h

+ 3
- 3
src/client/game.cpp View File

@@ -431,14 +431,14 @@ void Game::processRemoveAutomapFlag(const Position& pos, int icon, const std::st
431 431
     g_lua.callGlobalField("g_game", "onRemoveAutomapFlag", pos, icon, message);
432 432
 }
433 433
 
434
-void Game::processOpenOutfitWindow(const Outfit& currentOufit, const std::vector<std::tuple<int, std::string, int> >& outfitList,
434
+void Game::processOpenOutfitWindow(const Outfit& currentOutfit, const std::vector<std::tuple<int, std::string, int> >& outfitList,
435 435
                                    const std::vector<std::tuple<int, std::string> >& mountList)
436 436
 {
437 437
     // create virtual creature outfit
438 438
     CreaturePtr virtualOutfitCreature = CreaturePtr(new Creature);
439 439
     virtualOutfitCreature->setDirection(Otc::South);
440 440
 
441
-    Outfit outfit = currentOufit;
441
+    Outfit outfit = currentOutfit;
442 442
     outfit.setMount(0);
443 443
     virtualOutfitCreature->setOutfit(outfit);
444 444
 
@@ -452,7 +452,7 @@ void Game::processOpenOutfitWindow(const Outfit& currentOufit, const std::vector
452 452
         Outfit mountOutfit;
453 453
         mountOutfit.setId(0);
454 454
 
455
-        int mount = currentOufit.getMount();
455
+        int mount = currentOutfit.getMount();
456 456
         if(mount > 0)
457 457
             mountOutfit.setId(mount);
458 458
 

+ 1
- 1
src/client/game.h View File

@@ -130,7 +130,7 @@ protected:
130 130
     void processRemoveAutomapFlag(const Position& pos, int icon, const std::string& message);
131 131
 
132 132
     // outfit
133
-    void processOpenOutfitWindow(const Outfit& currentOufit, const std::vector<std::tuple<int, std::string, int> >& outfitList,
133
+    void processOpenOutfitWindow(const Outfit& currentOutfit, const std::vector<std::tuple<int, std::string, int> >& outfitList,
134 134
                                  const std::vector<std::tuple<int, std::string> >& mountList);
135 135
 
136 136
     // npc trade

Loading…
Cancel
Save