Non-matching: Loop/alloc issue
| 244 | |
| 245 | // Non-matching: Loop/alloc issue |
| 246 | xGoal* 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 | |
| 264 | S32 xPsyche::GIDOfActive() const |
| 265 | { |
no test coverage detected