trans: reset p when adding to trans list

This commit is contained in:
Jay Sorg 2013-09-23 19:17:50 -07:00
parent 3b743f64eb
commit fc31ae1f48

View File

@ -454,6 +454,7 @@ trans_write_copy(struct trans *self)
init_stream(wait_s, size);
out_uint8a(wait_s, out_s->data, size);
s_mark_end(wait_s);
wait_s->p = wait_s->data;
if (self->wait_s == 0)
{
self->wait_s = wait_s;