Tutorial 3 (Custom Scene Node) needs update for irrlicht 1.3

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Panther
Posts: 34
Joined: Tue Jun 06, 2006 1:05 am

Tutorial 3 (Custom Scene Node) needs update for irrlicht 1.3

Post by Panther »

I noticed that Tutorial #3 still has s32's instead of u32's:

Code: Select all

  virtual s32 getMaterialCount()
  {
    return 1;
  }

  virtual video::SMaterial& getMaterial(s32 i)
  {
    return Material;
  } 
Should be:

Code: Select all

	virtual u32 getMaterialCount()
	{
		return 1;
	}

	virtual video::SMaterial& getMaterial(u32 i)
	{
		return Material;
	}	

Thanks,
Panther
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I could only fix the html code since the real code was already fixed :)
Post Reply