Commit 9964e4cd authored by salix5's avatar salix5

fix warning

parent f09c20f7
......@@ -638,7 +638,7 @@ void Game::InitStaticText(irr::gui::IGUIStaticText* pControl, u32 cWidth, u32 cH
void Game::SetStaticText(irr::gui::IGUIStaticText* pControl, u32 cWidth, irr::gui::CGUITTFont* font, const wchar_t* text, u32 pos) {
int pbuffer = 0;
u32 _width = 0, _height = 0;
for(int i = 0; text[i] != 0 && i < wcslen(text); ++i) {
for(size_t i = 0; text[i] != 0 && i < wcslen(text); ++i) {
u32 w = font->getCharDimension(text[i]).Width;
if(text[i] == L'\n') {
dataManager.strBuffer[pbuffer++] = L'\n';
......
Subproject commit 627ee5b3721037d4ffc0b5f3e6db67ae10c53bb9
Subproject commit b31742b0fe41b6dd041a3c7efbaf7043773d0a38
Subproject commit c0d5188ed0ae14a5497276978fb65d3a67bf8095
Subproject commit c9c948561ca80c3df6a54518c4bb04b31a42e0cc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment