games_updatesavailable: check for -1 to avoid bad pointer errors
This commit is contained in:
parent
bf8f8e24cb
commit
70268440ee
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ game_updatesavailable(void)
|
|||
for (int i = 0i; i < pkgcount; i++) {
|
||||
int id = game_getpackageid(argv(i));
|
||||
string status = getpackagemanagerinfo(id, GPMI_INSTALLED);
|
||||
|
||||
|
||||
if (id == -1)
|
||||
continue;
|
||||
|
||||
switch (status) {
|
||||
case "":
|
||||
if (updates[id].installed == "") {
|
||||
|
|
Loading…
Reference in a new issue