1
Technical Help: IN GAME bugs (after loading world) /
« on: March 02, 2006, 10:36:12 pm »
Dave:
What brought it to my eye is that for some reason it got flagged as a UMR (uninitalized memory read). I was trying to simplify it so I could understand it a bit more. Having said that I agree that adds confusion and would actually upon reflection (personally) move the * around a bit:
uint32 p = *(uint32*)(buff+pos);
uint32 id = csLittleEndian::UInt32(p);
I think that\'s the best of both worlds.. both easily readable and short.
As for the 3rd item. I have to look at the class factory code.. something is off.
Osiri
What brought it to my eye is that for some reason it got flagged as a UMR (uninitalized memory read). I was trying to simplify it so I could understand it a bit more. Having said that I agree that adds confusion and would actually upon reflection (personally) move the * around a bit:
uint32 p = *(uint32*)(buff+pos);
uint32 id = csLittleEndian::UInt32(p);
I think that\'s the best of both worlds.. both easily readable and short.
As for the 3rd item. I have to look at the class factory code.. something is off.
Osiri

?? [/edit]