I messed up and confused data_size with the number of items in the

array.. also did some clean up for readability.
This commit is contained in:
phr0z3nt04st
2010-05-27 18:59:45 -05:00
parent e6aa35608f
commit 8e612ae59f
2 changed files with 11 additions and 4 deletions

View File

@@ -9,8 +9,8 @@ LLMessageLogEntry::LLMessageLogEntry(EType type, LLHost from_host, LLHost to_hos
{
if(data)
{
mData.resize(data_size);
mData.assign(data,data + data_size);
mData.resize(data_size/sizeof(U8));
mData.assign(data,data + data_size/sizeof(U8));
}
}
LLMessageLogEntry::LLMessageLogEntry(EType type, LLHost from_host, LLHost to_host, std::vector<U8> data, S32 data_size)