mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Throwing runtime_errors instead of string (or even char*) objects.
This commit is contained in:
@@ -68,7 +68,7 @@ namespace SRSLPraserHelpers
|
||||
case 5: //left
|
||||
return std::make_pair(x-1, y);
|
||||
default:
|
||||
throw std::string("Disaster: wrong direction in SRSLPraserHelpers::gotoDir!\n");
|
||||
throw std::runtime_error("Disaster: wrong direction in SRSLPraserHelpers::gotoDir!\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user