mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-25 02:47:40 +00:00
fixed buggy arg counting
This commit is contained in:
@@ -67,7 +67,7 @@ namespace arg {
|
||||
void lshift() { pos++; }
|
||||
|
||||
void shift() {
|
||||
lshift(); if(pos >= size(argument)) { printf("Missing parameter\n"); exit(1); }
|
||||
lshift(); if(pos > size(argument)) { printf("Missing parameter\n"); exit(1); }
|
||||
}
|
||||
|
||||
const string& args() { return argument[pos]; }
|
||||
|
||||
Reference in New Issue
Block a user