Use unaligned-safe copy of powerup position

This commit is contained in:
Kp 2013-08-11 16:19:30 +00:00
parent 760667eb60
commit 6e88008677

View file

@ -2074,7 +2074,7 @@ multi_do_create_powerup(const ubyte *buf)
return;
}
new_pos = *(vms_vector *)(buf+count); count+=sizeof(vms_vector);
memcpy(&new_pos, buf+count, sizeof(vms_vector)); count+=sizeof(vms_vector);
#ifdef WORDS_BIGENDIAN
new_pos.x = (fix)SWAPINT((int)new_pos.x);