Misc little bits of housekeeping and stuff

This commit is contained in:
2014-12-10 23:53:50 -05:00
parent 7a7b7f27c3
commit 5bfdb5eafa
14 changed files with 31 additions and 26 deletions

View File

@@ -619,7 +619,8 @@ void cParty::readFrom(std::istream& file){
cPlayer& cParty::operator[](unsigned short n){
if(n > 6) throw std::out_of_range("Attempt to access a player that doesn't exist.");
else if(n == 6) return adven[0]; // TODO: PC #6 should never be accessed, but bounds checking is rarely done, so this is a quick fix.
else if(n == 6)
return adven[0]; // TODO: PC #6 should never be accessed, but bounds checking is rarely done, so this is a quick fix.
return adven[n];
}