mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-10 02:31:02 +00:00
SAGA2: Initialize PlayerActor class variable. CID 1458011
This commit is contained in:
parent
36d707a6db
commit
dceeeb783c
@ -99,22 +99,17 @@ public:
|
|||||||
bool notifiedOfAttack;
|
bool notifiedOfAttack;
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
PlayerActor(ObjectID a) :
|
PlayerActor(ObjectID a) : actorID(a), portraitType(0), flags(0), readyNode(NULL),
|
||||||
actorID(a),
|
vitalityMemory(0), notifiedOfAttack(false) {
|
||||||
portraitType(0),
|
|
||||||
flags(0),
|
|
||||||
readyNode(NULL),
|
|
||||||
vitalityMemory(0) {
|
|
||||||
int i;
|
|
||||||
|
|
||||||
assert(ActorAttributes::skillFracPointsPerLevel > 0); // this is used in a divide
|
assert(ActorAttributes::skillFracPointsPerLevel > 0); // this is used in a divide
|
||||||
|
|
||||||
memset(&baseStats, 0, sizeof(baseStats));
|
memset(&baseStats, 0, sizeof(baseStats));
|
||||||
|
|
||||||
for (i = 0; i < numManas; i++)
|
for (int i = 0; i < numManas; i++)
|
||||||
manaMemory[i] = 0;
|
manaMemory[i] = 0;
|
||||||
|
|
||||||
for (i = 0; i < numSkills; i++) {
|
for (int i = 0; i < numSkills; i++) {
|
||||||
attribRecPools[i] = 0;
|
attribRecPools[i] = 0;
|
||||||
attribMemPools[i] = 0;
|
attribMemPools[i] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user