Browse Source

Fix data type for Modal Dialog ID

Daniel Björkholm 3 years ago
parent
commit
408e9b4239
4 changed files with 4 additions and 4 deletions
  1. 1
    1
      src/client/game.cpp
  2. 1
    1
      src/client/game.h
  3. 1
    1
      src/client/protocolgame.h
  4. 1
    1
      src/client/protocolgamesend.cpp

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

@@ -1383,7 +1383,7 @@ void Game::requestItemInfo(const ItemPtr& item, int index)
1383 1383
     m_protocolGame->sendRequestItemInfo(item->getId(), item->getSubType(), index);
1384 1384
 }
1385 1385
 
1386
-void Game::answerModalDialog(int dialog, int button, int choice)
1386
+void Game::answerModalDialog(uint32 dialog, int button, int choice)
1387 1387
 {
1388 1388
     if(!canPerformGameAction())
1389 1389
         return;

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

@@ -282,7 +282,7 @@ public:
282 282
     void requestItemInfo(const ItemPtr& item, int index);
283 283
 
284 284
     // >= 970 modal dialog
285
-    void answerModalDialog(int dialog, int button, int choice);
285
+    void answerModalDialog(uint32 dialog, int button, int choice);
286 286
 
287 287
     // >= 984 browse field
288 288
     void browseField(const Position& position);

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

@@ -110,7 +110,7 @@ public:
110 110
     void sendRequestQuestLine(int questId);
111 111
     void sendNewNewRuleViolation(int reason, int action, const std::string& characterName, const std::string& comment, const std::string& translation);
112 112
     void sendRequestItemInfo(int itemId, int subType, int index);
113
-    void sendAnswerModalDialog(int dialog, int button, int choice);
113
+    void sendAnswerModalDialog(uint32 dialog, int button, int choice);
114 114
     void sendBrowseField(const Position& position);
115 115
     void sendSeekInContainer(int cid, int index);
116 116
     void sendBuyStoreOffer(int offerId, int productType, const std::string& name);

+ 1
- 1
src/client/protocolgamesend.cpp View File

@@ -830,7 +830,7 @@ void ProtocolGame::sendRequestItemInfo(int itemId, int subType, int index)
830 830
     send(msg);
831 831
 }
832 832
 
833
-void ProtocolGame::sendAnswerModalDialog(int dialog, int button, int choice)
833
+void ProtocolGame::sendAnswerModalDialog(uint32 dialog, int button, int choice)
834 834
 {
835 835
     OutputMessagePtr msg(new OutputMessage);
836 836
     msg->addU8(Proto::ClientAnswerModalDialog);

Loading…
Cancel
Save