Return error for invalid bags

This commit is contained in:
Mats391
2025-12-30 17:14:36 +01:00
parent f0b5473945
commit c5ad4e0ed9
+2 -2
View File
@@ -1016,8 +1016,8 @@ namespace Nampower {
return 1;
}
// TODO Error for not finding the bag
lua_error(luaState, "Invalid bag index. Valid values: 0, 1-4, -1, 5-9 (bank)");
return 0;
}