Commit 667cdb75 authored by hybrid's avatar hybrid

Scope fix for VC6.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@989 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 4b2edf78
...@@ -619,10 +619,10 @@ void CGUIContextMenu::serializeAttributes(io::IAttributes* out, io::SAttributeRe ...@@ -619,10 +619,10 @@ void CGUIContextMenu::serializeAttributes(io::IAttributes* out, io::SAttributeRe
if (Parent->getType() == EGUIET_CONTEXT_MENU || Parent->getType() == EGUIET_MENU ) if (Parent->getType() == EGUIET_CONTEXT_MENU || Parent->getType() == EGUIET_MENU )
{ {
IGUIContextMenu* ptr = (IGUIContextMenu*)Parent; const IGUIContextMenu* const ptr = (const IGUIContextMenu*)Parent;
// find the position of this item in its parent's list // find the position of this item in its parent's list
s32 i; u32 i;
for (i=0; i<(s32)ptr->getItemCount() && ptr->getSubMenu(i) != this; ++i) for (i=0; (i<ptr->getItemCount()) && (ptr->getSubMenu(i) != this); ++i)
; // do nothing ; // do nothing
out->addInt("ParentItem", i); out->addInt("ParentItem", i);
......
...@@ -267,7 +267,8 @@ bool COpenGLDriver::genericDriverInit(const core::dimension2d<s32>& screenSize, ...@@ -267,7 +267,8 @@ bool COpenGLDriver::genericDriverInit(const core::dimension2d<s32>& screenSize,
if (renderer && vendor) if (renderer && vendor)
os::Printer::log(reinterpret_cast<const c8*>(renderer), reinterpret_cast<const c8*>(vendor), ELL_INFORMATION); os::Printer::log(reinterpret_cast<const c8*>(renderer), reinterpret_cast<const c8*>(vendor), ELL_INFORMATION);
for (u32 i=0; i<MATERIAL_MAX_TEXTURES; ++i) u32 i;
for (i=0; i<MATERIAL_MAX_TEXTURES; ++i)
CurrentTexture[i]=0; CurrentTexture[i]=0;
// load extensions // load extensions
initExtensions(stencilBuffer); initExtensions(stencilBuffer);
...@@ -306,7 +307,7 @@ bool COpenGLDriver::genericDriverInit(const core::dimension2d<s32>& screenSize, ...@@ -306,7 +307,7 @@ bool COpenGLDriver::genericDriverInit(const core::dimension2d<s32>& screenSize,
UserClipPlane.reallocate(MaxUserClipPlanes); UserClipPlane.reallocate(MaxUserClipPlanes);
UserClipPlaneEnabled.reallocate(MaxUserClipPlanes); UserClipPlaneEnabled.reallocate(MaxUserClipPlanes);
for (u32 i=0; i<MaxUserClipPlanes; ++i) for (i=0; i<MaxUserClipPlanes; ++i)
{ {
UserClipPlane.push_back(core::plane3df()); UserClipPlane.push_back(core::plane3df());
UserClipPlaneEnabled.push_back(false); UserClipPlaneEnabled.push_back(false);
......
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