aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/lltemplatemessagereader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/lltemplatemessagereader.cpp')
-rw-r--r--linden/indra/llmessage/lltemplatemessagereader.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/linden/indra/llmessage/lltemplatemessagereader.cpp b/linden/indra/llmessage/lltemplatemessagereader.cpp
index a1f5213..329d2a8 100644
--- a/linden/indra/llmessage/lltemplatemessagereader.cpp
+++ b/linden/indra/llmessage/lltemplatemessagereader.cpp
@@ -26,6 +26,7 @@
26 * COMPLETENESS OR PERFORMANCE. 26 * COMPLETENESS OR PERFORMANCE.
27 */ 27 */
28 28
29#include "linden_common.h"
29#include "lltemplatemessagereader.h" 30#include "lltemplatemessagereader.h"
30 31
31#include "llfasttimer.h" 32#include "llfasttimer.h"
@@ -351,7 +352,7 @@ void LLTemplateMessageReader::getF64(const char *block, const char *var,
351void LLTemplateMessageReader::getVector3(const char *block, const char *var, 352void LLTemplateMessageReader::getVector3(const char *block, const char *var,
352 LLVector3 &v, S32 blocknum ) 353 LLVector3 &v, S32 blocknum )
353{ 354{
354 getData(block, var, v.mV, sizeof(v.mV), blocknum); 355 getData(block, var, &v.mV[0], sizeof(v.mV), blocknum);
355 356
356 if( !v.isFinite() ) 357 if( !v.isFinite() )
357 { 358 {
@@ -364,7 +365,7 @@ void LLTemplateMessageReader::getVector3(const char *block, const char *var,
364void LLTemplateMessageReader::getVector4(const char *block, const char *var, 365void LLTemplateMessageReader::getVector4(const char *block, const char *var,
365 LLVector4 &v, S32 blocknum) 366 LLVector4 &v, S32 blocknum)
366{ 367{
367 getData(block, var, v.mV, sizeof(v.mV), blocknum); 368 getData(block, var, &v.mV[0], sizeof(v.mV), blocknum);
368 369
369 if( !v.isFinite() ) 370 if( !v.isFinite() )
370 { 371 {
@@ -377,7 +378,7 @@ void LLTemplateMessageReader::getVector4(const char *block, const char *var,
377void LLTemplateMessageReader::getVector3d(const char *block, const char *var, 378void LLTemplateMessageReader::getVector3d(const char *block, const char *var,
378 LLVector3d &v, S32 blocknum ) 379 LLVector3d &v, S32 blocknum )
379{ 380{
380 getData(block, var, v.mdV, sizeof(v.mdV), blocknum); 381 getData(block, var, &v.mdV[0], sizeof(v.mdV), blocknum);
381 382
382 if( !v.isFinite() ) 383 if( !v.isFinite() )
383 { 384 {
@@ -392,7 +393,7 @@ void LLTemplateMessageReader::getQuat(const char *block, const char *var,
392 LLQuaternion &q, S32 blocknum) 393 LLQuaternion &q, S32 blocknum)
393{ 394{
394 LLVector3 vec; 395 LLVector3 vec;
395 getData(block, var, vec.mV, sizeof(vec.mV), blocknum); 396 getData(block, var, &vec.mV[0], sizeof(vec.mV), blocknum);
396 if( vec.isFinite() ) 397 if( vec.isFinite() )
397 { 398 {
398 q.unpackFromVector3( vec ); 399 q.unpackFromVector3( vec );
@@ -408,7 +409,7 @@ void LLTemplateMessageReader::getQuat(const char *block, const char *var,
408void LLTemplateMessageReader::getUUID(const char *block, const char *var, 409void LLTemplateMessageReader::getUUID(const char *block, const char *var,
409 LLUUID &u, S32 blocknum) 410 LLUUID &u, S32 blocknum)
410{ 411{
411 getData(block, var, u.mData, sizeof(u.mData), blocknum); 412 getData(block, var, &u.mData[0], sizeof(u.mData), blocknum);
412} 413}
413 414
414inline void LLTemplateMessageReader::getIPAddr(const char *block, const char *var, U32 &u, S32 blocknum) 415inline void LLTemplateMessageReader::getIPAddr(const char *block, const char *var, U32 &u, S32 blocknum)