Skip to content

Commit

Permalink
Fixed compile error on VS2010
Browse files Browse the repository at this point in the history
* unprofessional personal diary page 1
  • Loading branch information
Jittapan Pluemsumran committed Aug 14, 2016
1 parent 8657c42 commit 1e8c27c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/map/itemdb.c
Expand Up @@ -1609,15 +1609,16 @@ static bool itemdb_read_randomopt(const char* basedir, bool silent) {
}
else {
int id;
struct s_random_opt_data *data;
struct script_code *code;

str[0] = trim(str[0]);
if (ISDIGIT(str[0][0])) {
id = atoi(str[0]);
}
else {
script_get_constant(str[0], &id);
}
struct s_random_opt_data *data;
struct script_code *code;

if ((data = itemdb_randomopt_exists(id)) == NULL) {
data = malloc(sizeof(struct s_random_opt_data));
Expand Down

0 comments on commit 1e8c27c

Please sign in to comment.