mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 16:57:47 +00:00
Static cast class (consider ClassJob type for m_class);
This commit is contained in:
parent
2ce35039db
commit
7fcb2180b5
2 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ namespace Core {
|
|||
float x, y, z, o;
|
||||
int32_t startTown = 0;
|
||||
|
||||
switch( m_class )
|
||||
switch( static_cast< Core::Common::ClassJob >( m_class ) )
|
||||
{
|
||||
case Core::Common::ClassJob::Conjurer:
|
||||
case Core::Common::ClassJob::Lancer:
|
||||
|
|
|
@ -48,7 +48,7 @@ Core::StatusEffect::StatusEffectContainer::~StatusEffectContainer()
|
|||
|
||||
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( nextSlot == -1 )
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue