mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 08:57:44 +00:00
Static cast class (consider ClassJob type for m_class);
This commit is contained in:
parent
564ee05b54
commit
189ff33913
2 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ namespace Core {
|
||||||
float x, y, z, o;
|
float x, y, z, o;
|
||||||
int32_t startTown = 0;
|
int32_t startTown = 0;
|
||||||
|
|
||||||
switch( m_class )
|
switch( static_cast< Core::Common::ClassJob >( m_class ) )
|
||||||
{
|
{
|
||||||
case Core::Common::ClassJob::Conjurer:
|
case Core::Common::ClassJob::Conjurer:
|
||||||
case Core::Common::ClassJob::Lancer:
|
case Core::Common::ClassJob::Lancer:
|
||||||
|
|
|
@ -48,7 +48,7 @@ Core::StatusEffect::StatusEffectContainer::~StatusEffectContainer()
|
||||||
|
|
||||||
void Core::StatusEffect::StatusEffectContainer::addStatusEffect( StatusEffectPtr pEffect )
|
void Core::StatusEffect::StatusEffectContainer::addStatusEffect( StatusEffectPtr pEffect )
|
||||||
{
|
{
|
||||||
uint8_t nextSlot = getFreeSlot();
|
int8_t nextSlot = getFreeSlot();
|
||||||
// if there is no slot left, do not add the effect
|
// if there is no slot left, do not add the effect
|
||||||
if( nextSlot == -1 )
|
if( nextSlot == -1 )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue