Game Development Community

Stack Overflow (FOR T2D CREW)

by Ricky Taylor · in Torque Game Builder · 03/23/2006 (10:42 am) · 2 replies

Err... Look at this:
inline S16 convertBEndianToHost(S16 i)
{
   return S16(convertBEndianToHost(S16(i)));
}

Notice anything?


Yes, it points to itself!

It should be:
inline S16 convertBEndianToHost(S16 i)
{
   return S16(convertBEndianToHost([b]U16[/b](i)));
}

#1
03/23/2006 (2:23 pm)
I'm pretty sure i filed this as a bug already, (long ago) so i hope it's not in the next version that comes out...

what build did you find this in ricky?
#2
03/24/2006 (3:04 am)
This is a TGE Core thing; I'll pass it along the line, assuming it hasn't been dealt with already.

Thanks,

- Melv.