From 36c6689c7a16fbbbb8d9642fc42e0b49dd931ace Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Fri, 14 Feb 2014 11:37:20 +0100 Subject: [PATCH] bug fixes --- Code/Game/DanBiasGame/GameClientState/Buttons/TextField.h | 2 +- Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Game/DanBiasGame/GameClientState/Buttons/TextField.h b/Code/Game/DanBiasGame/GameClientState/Buttons/TextField.h index 4333f1da..62866834 100644 --- a/Code/Game/DanBiasGame/GameClientState/Buttons/TextField.h +++ b/Code/Game/DanBiasGame/GameClientState/Buttons/TextField.h @@ -173,7 +173,7 @@ namespace DanBias { namespace Client split.reserve( 10 ); ::Utility::String::Split( split, text, L"\n", 0 ); auto line = split.begin(); - for( ; line != split.end; ++line ) + for( ; line != split.end(); ++line ) { this->lines.push_back( (*line) ); } diff --git a/Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp b/Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp index 63ea4228..bf713d85 100644 --- a/Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp +++ b/Code/Game/DanBiasGame/GameClientState/LanMenuState.cpp @@ -62,7 +62,7 @@ bool LanMenuState::Init(Network::NetworkClient* nwClient) this->privData->connectIP = new TextField( L"earth_md.png", Float3(1.0f), this, Float3(0.1f, 0.2f, 0.5f), Float2(0.45f, 0.1f), ResizeAspectRatio_Width ); this->privData->connectIP->ReserveLines( 1 ); - (*this->privData->connectIP)[0] = L"127.0.0.1"; + this->privData->connectIP->AppendText( L"127.0.0.1" ); this->privData->connectIP->SetTextHeight( 0.1f ); this->privData->connectIP->SetLineSpacing( 0.0f );