Skip to content

Commit

Permalink
Follow up to 9333921
Browse files Browse the repository at this point in the history
Thanks to @Playtester's friend Ash for reporting this.
  • Loading branch information
Lemongrass3110 committed Dec 13, 2016
1 parent d095fe7 commit 7df9962
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/map/script.c
Expand Up @@ -7801,16 +7801,17 @@ BUILDIN_FUNC(readparam)

if( script_hasdata(st, 3) ){
if( script_isint(st, 3) ){
if( !script_charid2sd(3, sd) ){
script_pushint(st, -1);
return SCRIPT_CMD_FAILURE;
}
script_charid2sd(3, sd);
}else{
if( !script_nick2sd(3, sd) ){
script_pushint(st, -1);
return SCRIPT_CMD_FAILURE;
}
script_nick2sd(3, sd);
}
}else{
sd = script_rid2sd(st);
}

if( !sd ){
script_pushint(st, -1);
return SCRIPT_CMD_FAILURE;
}

// If you use a parameter, return the value behind it
Expand Down

1 comment on commit 7df9962

@Lemongrass3110
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I got her GitHub username - officially thanks to @canoe! :-)

Please sign in to comment.