diff --git a/src/apps/haikudepot/server/PkgDataUpdateProcess.cpp b/src/apps/haikudepot/server/PkgDataUpdateProcess.cpp index 99f0ee4443..961f8a447a 100644 --- a/src/apps/haikudepot/server/PkgDataUpdateProcess.cpp +++ b/src/apps/haikudepot/server/PkgDataUpdateProcess.cpp @@ -148,7 +148,8 @@ PackageFillingPkgListener::Handle(DumpExportPkg* pkg) printf("unable to find the category for [%s]\n", categoryCode->String()); } else { - packageInfo->AddCategory(fCategories.ItemAtFast(i)); + packageInfo->AddCategory( + fCategories.ItemAtFast(categoryIndex)); } } @@ -285,4 +286,4 @@ const char* PkgDataUpdateProcess::LoggingName() const { return "pkg-data-update"; -} \ No newline at end of file +}