- *(u16*)&pos[8] = (u16)(TAGID_PLACEOBJECT2<<6) + 6 + namelen;
- *(u16*)&pos[10]= 34; //flags: id+name
- *(u16*)&pos[11]= 1+t; // depth
- *(u16*)&pos[13]= t+1; // id
+ *(u16*)&pos[8] = SWAP16((u16)(TAGID_PLACEOBJECT2<<6) + 6 + namelen);
+ *(u16*)&pos[10]= SWAP16(34); //flags: id+name
+ *(u16*)&pos[11]= SWAP16(1+t); // depth
+ *(u16*)&pos[13]= SWAP16(t+1); // id