summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-09 13:40:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-11 11:31:34 +0300
commit7dfdffc814f164fe7f6461f9767cc531ef150c83 (patch)
treef1a260ce24d5906e9d386c2854d8373bacafc48b /src/map/status.c
parent94e07caca987dc83d1c42a58b10437117ae53832 (diff)
downloadhercules-7dfdffc814f164fe7f6461f9767cc531ef150c83.tar.gz
hercules-7dfdffc814f164fe7f6461f9767cc531ef150c83.tar.bz2
hercules-7dfdffc814f164fe7f6461f9767cc531ef150c83.tar.xz
hercules-7dfdffc814f164fe7f6461f9767cc531ef150c83.zip
Convert pcdb_checkid into function in pc interface.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7b4e6f274..9a63e32a5 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6218,7 +6218,7 @@ void status_set_viewdata(struct block_list *bl, int class_)
case BL_PC:
{
TBL_PC* sd = (TBL_PC*)bl;
- if (pcdb_checkid(class_)) {
+ if (pc->db_checkid(class_)) {
if (pc_isridingpeco(sd)) {
switch (class_) {
//Adapt class to a Mounted one.
@@ -6285,7 +6285,7 @@ void status_set_viewdata(struct block_list *bl, int class_)
TBL_PET* pd = (TBL_PET*)bl;
if (vd) {
memcpy(&pd->vd, vd, sizeof(struct view_data));
- if (!pcdb_checkid(vd->class_)) {
+ if (!pc->db_checkid(vd->class_)) {
pd->vd.hair_style = battle_config.pet_hair_style;
if(pd->pet.equip) {
pd->vd.head_bottom = itemdb_viewid(pd->pet.equip);
@@ -12046,7 +12046,7 @@ bool status_readdb_job1(char* fields[], int columns, int current)
class_ = atoi(fields[0]);
- if(!pcdb_checkid(class_))
+ if(!pc->db_checkid(class_))
{
ShowWarning("status_readdb_job1: Invalid job class %d specified.\n", class_);
return false;
@@ -12074,7 +12074,7 @@ bool status_readdb_job2(char* fields[], int columns, int current)
class_ = atoi(fields[0]);
- if(!pcdb_checkid(class_))
+ if(!pc->db_checkid(class_))
{
ShowWarning("status_readdb_job2: Invalid job class %d specified.\n", class_);
return false;