More debug logs

This commit is contained in:
Sergii Pylypenko
2018-01-29 21:23:41 +02:00
parent 613faa31ec
commit 109a5e8d82
3 changed files with 12 additions and 5 deletions

View File

@@ -203,7 +203,7 @@ static inline bool IsValidNewGRFImageIndex(uint8 image_index)
return image_index == 0xFD || IsValidImageIndex<T>(image_index);
}
class OTTDByteReaderSignal { };
class OTTDByteReaderSignal: public std::runtime_error { public: OTTDByteReaderSignal():std::runtime_error("OTTDByteReaderSignal: NewGRF byte data invalid") {} };
/** Class to read from a NewGRF file */
class ByteReader {