1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed buggy arg counting

This commit is contained in:
Zeno Rogue 2018-03-02 13:02:24 +01:00
parent f9aa220931
commit a9d506e03f

View File

@ -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]; }