Added some nullchecks, removed some dead code, and cleaned up a few small things.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user