[fixed]This isn't a bug - Redundant code

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
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

[fixed]This isn't a bug - Redundant code

Post by chronologicaldot »

I wasn't sure where to comment on this since it's not a bug but it doesn't fit in any other category.

In CGUIMeshViewer.cpp, line 120 contains the statement:

Code: Select all

 
frameRect.LowerRightCorner.Y = AbsoluteRect.LowerRightCorner.Y;
 
This seems like a redundancy in the code considering that line 118 is:

Code: Select all

 
frameRect = AbsoluteRect;
 
which should perform (amongst other things) the same operation as on line 120.

It's no big deal. I just happened to notice it.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: This isn't a bug - Redundant code

Post by CuteAlien »

Yep, not needed and kicked out now. Thanks for reporting :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply