diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/itemdb.c | 4 | ||||
-rw-r--r-- | src/map/skill.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 70a056292..99e74cbbe 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -929,10 +929,14 @@ static int itemdb_read_sqldb(void) while( SQL_SUCCESS == Sql_NextRow(mmysql_handle) ) {// wrap the result into a TXT-compatible format char* str[22]; + char* dummy = ""; int i; ++lines; for( i = 0; i < 22; ++i ) + { Sql_GetData(mmysql_handle, i, &str[i], NULL); + if( str[i] == NULL ) str[i] = dummy; // get rid of NULL columns + } if (!itemdb_parse_dbrow(str, item_db_name[fi], lines, 0)) continue; diff --git a/src/map/skill.c b/src/map/skill.c index 4f500a2ba..ee9cffcb7 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8865,7 +8865,7 @@ int skill_delayfix (struct block_list *bl, int skill_id, int skill_lv, bool inst if (bl->type&battle_config.no_skill_delay) return battle_config.min_skill_delay_limit; - // instant delay skills have aspd delay IF they were also instant cast (reported by Tharis) [Skotlex] + // no-delay skills get aspd delay IF they were also instant cast (reported by Tharis) [Skotlex] if (time == 0) { if (instantcast) time = status_get_amotion(bl); //Use attack delay. |