mirror of
https://github.com/brues-code/nampower.git
synced 2026-09-30 18:50:00 +00:00
Return error for invalid bags
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user