mirror of https://github.com/odrling/Aegisub
Validate the value passed to AssTime's constructor rather than allowing the creation of bad times
Originally committed to SVN as r6060.
This commit is contained in:
parent
515ed54f1d
commit
21f94ae72e
|
@ -53,8 +53,8 @@
|
|||
|
||||
|
||||
/// @brief AssTime constructors
|
||||
AssTime::AssTime () : time(0) { }
|
||||
AssTime::AssTime (int time) : time(time) { }
|
||||
AssTime::AssTime() : time(0) { }
|
||||
AssTime::AssTime(int time) { SetMS(time); }
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue