Resolved an uninitialized variable (fixes #1717)
* Follow up to ade1b17. * Corrects the countitem script command having an uninitialized variable warning during compile. Thanks to @hnomkeng!
This commit is contained in:
parent
5332d7f0e7
commit
cb279a7243
@ -6475,7 +6475,7 @@ BUILDIN_FUNC(countitem)
|
|||||||
uint16 size, count = 0;
|
uint16 size, count = 0;
|
||||||
struct item *items;
|
struct item *items;
|
||||||
TBL_PC *sd = NULL;
|
TBL_PC *sd = NULL;
|
||||||
struct s_storage *gstor;
|
struct s_storage *gstor = NULL;
|
||||||
|
|
||||||
if( command[strlen(command)-1] == '2' ) {
|
if( command[strlen(command)-1] == '2' ) {
|
||||||
i = 1;
|
i = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user