thread: Code!
View Single Post
  #6  
01-18-2014, 04:07 AM
Nate's Avatar
Nate
Oddworld Administrator
Rainbow of Flavour
 
: Apr 2002
: Seattle (woo!)
: 16,311
Blog Entries: 176
Rep Power: 42
Nate  (13497)Nate  (13497)Nate  (13497)Nate  (13497)Nate  (13497)Nate  (13497)Nate  (13497)Nate  (13497)Nate  (13497)Nate  (13497)Nate  (13497)

:
It was an alignment issue. I was stepping through my void pointers stupidly. Now I'm casting them to an unsigned, 8-bit integer pointer and adding i * the size of the item I'm allocating space for in bytes. I forgot the multiplication bit before, so it was possibly ending up halfway through a 32 bit integer as far as the CPU is concerned. Maybe.
Is it solved now?
__________________
:
Spending as long as I do here, it's easy to forget that Oddworld has actual fans.

Reply With Quote