MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / RemoveChild

Method RemoveChild

src/SB/Game/zNPCTypeTiki.cpp:1068–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066}
1067
1068void zNPCTiki::RemoveChild(zNPCTiki* child)
1069{
1070 U8 i = 0;
1071
1072 if (this->numChildren == 0)
1073 return;
1074
1075 while (this->children[i] != child && i < sizeof(this->children[0]))
1076 {
1077 i++;
1078 }
1079
1080 if (this->children[i] != child)
1081 return;
1082
1083 this->children[i] = NULL;
1084 this->numChildren--;
1085}
1086
1087void zNPCTiki::RemoveParent(zNPCTiki* parent)
1088{

Callers 2

FindParentsMethod · 0.80
RemoveFromFamilyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected