diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-02-13 18:39:41 -0800 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-02-13 18:39:41 -0800 |
commit | 9181229b34e1374f1b564fed637088bca4535ae0 (patch) | |
tree | 642386d1906aebe075ff46c5063ba6ee2023422a /indra/newview/llpathfindingcharacter.cpp | |
parent | 76959fdb455e5fc3f08b0e1f61f13f14c0d87303 (diff) |
Updating the pathfinding character initialization to match the new data type for CPU time.
Diffstat (limited to 'indra/newview/llpathfindingcharacter.cpp')
-rw-r--r-- | indra/newview/llpathfindingcharacter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llpathfindingcharacter.cpp b/indra/newview/llpathfindingcharacter.cpp index e603356889..2fb48b0eea 100644 --- a/indra/newview/llpathfindingcharacter.cpp +++ b/indra/newview/llpathfindingcharacter.cpp @@ -66,9 +66,8 @@ LLPathfindingCharacter::LLPathfindingCharacter(const std::string &pUUID, const L LLAvatarNameCache::get(mOwnerUUID, &mOwnerName);
llassert(pCharacterItem.has(CHARACTER_CPU_TIME_FIELD));
- llassert(pCharacterItem.get(CHARACTER_CPU_TIME_FIELD).isInteger());
- llassert(pCharacterItem.get(CHARACTER_CPU_TIME_FIELD).asInteger() >= 0);
- mCPUTime = pCharacterItem.get(CHARACTER_CPU_TIME_FIELD).asInteger();
+ llassert(pCharacterItem.get(CHARACTER_CPU_TIME_FIELD).isReal());
+ mCPUTime = pCharacterItem.get(CHARACTER_CPU_TIME_FIELD).asReal();
llassert(pCharacterItem.has(CHARACTER_POSITION_FIELD));
llassert(pCharacterItem.get(CHARACTER_POSITION_FIELD).isArray());
|