mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
SAGA2: Fix task initializations. CID 1457866, 1457879, 1457959, 1458033
This commit is contained in:
parent
edaa04bdc8
commit
fb37e70514
@ -790,9 +790,7 @@ class HuntTask : public Task {
|
||||
|
||||
public:
|
||||
// Constructor -- initial construction
|
||||
HuntTask(TaskStack *ts) :
|
||||
Task(ts),
|
||||
huntFlags(0) {
|
||||
HuntTask(TaskStack *ts) : Task(ts), huntFlags(0), subTask(nullptr) {
|
||||
debugC(2, kDebugTasks, " - HuntTask");
|
||||
_type = "HuntTask";
|
||||
}
|
||||
@ -1381,7 +1379,7 @@ public:
|
||||
int bandIndex;
|
||||
|
||||
public:
|
||||
BandingRepulsorIterator(Actor *actor) : a(actor) {}
|
||||
BandingRepulsorIterator(Actor *actor) : a(actor), band(nullptr), bandIndex(0) {}
|
||||
|
||||
bool first(
|
||||
TilePoint &repulsorVector,
|
||||
@ -1406,7 +1404,9 @@ public:
|
||||
|
||||
public:
|
||||
BandAndAvoidEnemiesRepulsorIterator(Actor *actor) :
|
||||
BandingRepulsorIterator(actor) {
|
||||
BandingRepulsorIterator(actor), numActors(0), actorIndex(0), iteratingThruEnemies(false) {
|
||||
for (int i = 0; i < 6; i++)
|
||||
actorArray[i] = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
@ -1565,7 +1565,7 @@ public:
|
||||
Task(ts),
|
||||
gotoWayPoint(NULL),
|
||||
patrolIter(iter),
|
||||
lastWayPointNum(stopAt) {
|
||||
lastWayPointNum(stopAt), counter(0) {
|
||||
debugC(2, kDebugTasks, " - FollowPatrolRouteTask");
|
||||
_type = "FollowPatrolRouteTask";
|
||||
followPatrolRoute();
|
||||
|
Loading…
Reference in New Issue
Block a user