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

Method GIDInStack

src/SB/Core/x/xBehaveMgr.cpp:246–262  ·  view source on GitHub ↗

Non-matching: Loop/alloc issue

Source from the content-addressed store, hash-verified

244
245// Non-matching: Loop/alloc issue
246xGoal* xPsyche::GIDInStack(S32 gid) const
247{
248 xGoal* da_goal = NULL;
249
250 for (S32 i = 0; i <= this->staktop; i++)
251 {
252 xGoal* tmpgoal = this->goalstak[i];
253
254 if (gid == tmpgoal->GetID())
255 {
256 da_goal = tmpgoal;
257 break;
258 }
259 }
260
261 return da_goal;
262}
263
264S32 xPsyche::GIDOfActive() const
265{

Callers 7

AmnesiaMethod · 0.95
NPCMessageMethod · 0.80
EnterMethod · 0.80
FolkHandleMailMethod · 0.80
SpeakEndMethod · 0.80
JellyKillMethod · 0.80
AmbiHandleMailMethod · 0.80

Calls 1

GetIDMethod · 0.80

Tested by

no test coverage detected