Fixes default initializer of SavingThrow model.
Adds tests for SavingThrow model.
This commit is contained in:
		| @@ -10,6 +10,15 @@ | ||||
|  | ||||
| @implementation SavingThrow | ||||
|  | ||||
| -(id)init { | ||||
|     self = [super init]; | ||||
|      | ||||
|     self.name = @""; | ||||
|     self.order = -1; | ||||
|      | ||||
|     return self; | ||||
| } | ||||
|  | ||||
| -(id)initWithName: (NSString*)name andOrder: (int)order { | ||||
|     self = [super init]; | ||||
|      | ||||
|   | ||||
		Reference in New Issue
	
	Block a user