- don't use s() in other getters.

This commit is contained in:
Christoph Oelckers 2021-12-23 23:48:39 +01:00
parent 395a269feb
commit 0ebd7532b8

View file

@ -41,7 +41,7 @@ public:
bool exists() const bool exists() const
{ {
return (unsigned)s().statnum < MAXSTATUS; return (unsigned)spr.statnum < MAXSTATUS;
} }
const spritetype& s() const const spritetype& s() const
@ -57,17 +57,17 @@ public:
int GetIndex() const int GetIndex() const
{ {
// This is only identical with the sprite index for items spawned at map start. // This is only identical with the sprite index for items spawned at map start.
return s().time; return spr.time;
} }
sectortype* sector() const sectortype* sector() const
{ {
return s().sector(); return spr.sector();
} }
bool insector() const bool insector() const
{ {
return s().insector(); return spr.insector();
} }
}; };