aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-03-03 02:48:31 +0200
committersilver1ce <none@none>2010-03-03 02:48:31 +0200
commit9e63454b6306c369a9a0b8c21fd4d87e6e9f5a98 (patch)
tree833fbd1aaf83493f58c2b38598e6b69012a18be0 /src/game/Creature.cpp
parentab51061318a8a1255259ce206c3c5c9abbdcc616 (diff)
store unit's level in uint8 format
TODO: may be change db format too --HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 3591179eb23..d88dddedd0c 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -132,7 +132,7 @@ bool AssistDelayEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
return true;
}
-CreatureBaseStats const* CreatureBaseStats::GetBaseStats(uint32 level, uint8 unitClass)
+CreatureBaseStats const* CreatureBaseStats::GetBaseStats(uint8 level, uint8 unitClass)
{
return objmgr.GetCreatureBaseStats(level, unitClass);
}
@@ -1083,6 +1083,7 @@ void Creature::SelectLevel(const CreatureInfo *cinfo)
SetLevel(level);
CreatureBaseStats const* stats = objmgr.GetCreatureBaseStats(level, cinfo->unit_class);
+ assert(stats); // should not be null
// health
float healthmod = _GetHealthMod(rank);