Browse Source

fix compiler errors

Kolja Strohm 3 years ago
parent
commit
f1c1db8504
2 changed files with 2 additions and 2 deletions
  1. 1 1
      StickmanWorldOnline/SpielStatistik.cpp
  2. 1 1
      StickmanWorldOnline/StatistikChat.cpp

+ 1 - 1
StickmanWorldOnline/SpielStatistik.cpp

@@ -214,7 +214,7 @@ void SpielStatistik::nachricht( int l
     case 2: // Ladevorgang abgeschlossen
         if( 1 )
         {
-            chat = new StatistikChat( accountId, spielc->getThis(), infoc->getThis(), uiFactory, bilder, addNachrichtF, addChatF, addFreundF, accountAnsehenF, nachrichtParam );
+            chat = new StatistikChat( accountId, dynamic_cast<KSGClient::SpielServerClient *>( spielc->getThis() ), dynamic_cast<KSGClient::InformationServerClient *>( infoc->getThis() ), uiFactory, bilder, addNachrichtF, addChatF, addFreundF, accountAnsehenF, nachrichtParam );
             int anz = gss->getEintragAnzahl();
             for( int i = 0; i < anz; i++ )
             {

+ 1 - 1
StickmanWorldOnline/StatistikChat.cpp

@@ -302,7 +302,7 @@ StatistikChat::StatistikChat( int eigeneId, KSGClient::SpielServerClient *spielc
     nachricht( initTextFeld( 10, 450, 575, 20, uiFactory, TextFeld::Style::TextFeld, "" ) ),
     senden( initKnopf( 590, 450, 20, 20, uiFactory, 0, "" ) ),
     verlassen( initKnopf( 630, 450, 130, 20, uiFactory, Knopf::Style::Sichtbar, "Verlassen" ) ),
-    spielerListe( new ChatListe( eigeneId, infoc->getThis(), uiFactory, bilder, addChat, addFreund, accountAnsehen, nachrichtParam ) ),
+    spielerListe( new ChatListe( eigeneId, dynamic_cast<KSGClient::InformationServerClient *>( infoc->getThis() ), uiFactory, bilder, addChat, addFreund, accountAnsehen, nachrichtParam ) ),
     beenden( 0 )
 {
     Bild *sendenBild = bilder->get( "data/client/bilder/chat.ltdb/senden.png" );