fix substring calculation of ~TC() second parameter

This commit is contained in:
Patrick Parker 2006-11-17 05:06:25 +00:00
parent 41a9a8bede
commit f1c7d846d0

View file

@ -341,7 +341,7 @@ surface locator::load_image_sub_file() const
break;
std::string f1,f2;
f1 = field.substr(0,pos);
f2 = field.substr(pos,field.size()-pos-1);
f2 = field.substr(pos+1);
if(game_config::tc_info(f2).size()){
function="RC";
field= f2 + ">" + f1;