Fixed compile error on VS2010
* unprofessional personal diary page 1
This commit is contained in:
parent
8657c4210c
commit
1e8c27c085
@ -1609,6 +1609,9 @@ static bool itemdb_read_randomopt(const char* basedir, bool silent) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int id;
|
int id;
|
||||||
|
struct s_random_opt_data *data;
|
||||||
|
struct script_code *code;
|
||||||
|
|
||||||
str[0] = trim(str[0]);
|
str[0] = trim(str[0]);
|
||||||
if (ISDIGIT(str[0][0])) {
|
if (ISDIGIT(str[0][0])) {
|
||||||
id = atoi(str[0]);
|
id = atoi(str[0]);
|
||||||
@ -1616,8 +1619,6 @@ static bool itemdb_read_randomopt(const char* basedir, bool silent) {
|
|||||||
else {
|
else {
|
||||||
script_get_constant(str[0], &id);
|
script_get_constant(str[0], &id);
|
||||||
}
|
}
|
||||||
struct s_random_opt_data *data;
|
|
||||||
struct script_code *code;
|
|
||||||
|
|
||||||
if ((data = itemdb_randomopt_exists(id)) == NULL) {
|
if ((data = itemdb_randomopt_exists(id)) == NULL) {
|
||||||
data = malloc(sizeof(struct s_random_opt_data));
|
data = malloc(sizeof(struct s_random_opt_data));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user