mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
protect output
This commit is contained in:
parent
0e1ea07313
commit
1bf44ee2d7
@ -103,7 +103,12 @@ safe_to_combine() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void CharacterJointEffect::
|
||||
output(ostream &out) const {
|
||||
out << get_type() << "(" << _character->get_name() << ")";
|
||||
out << get_type();
|
||||
if (_character.is_valid_pointer()) {
|
||||
out << "(" << _character->get_name() << ")";
|
||||
} else {
|
||||
out << "(**invalid**)";
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user