Added some nullchecks, removed some dead code, and cleaned up a few small things.

This commit is contained in:
Shyotl
2012-11-04 21:16:53 -06:00
parent dca9501de7
commit 71deb8925e
6 changed files with 33 additions and 24 deletions

View File

@@ -56,7 +56,10 @@
std::string self_av_string()
{
return gAgentAvatarp->avString();
if(isAgentAvatarValid())
return gAgentAvatarp->avString();
else
return std::string();
}
// RAII thingy to guarantee that a variable gets reset when the Setter