| 17 |
|
|
| 18 |
|
void CHARTest() |
| 19 |
|
{ |
| 20 |
< |
CharacterObject* TestCHAR = malloc(sizeof(CharacterObject)); |
| 21 |
< |
memset(TestCHAR, 0, sizeof(CharacterObject)); |
| 20 |
> |
CharacterObject TestCHAR; |
| 21 |
> |
memset(&TestCHAR, 0, sizeof(CharacterObject)); |
| 22 |
|
|
| 23 |
< |
memcpy(TestCHAR->Header.Type, "CHAR", 4); |
| 24 |
< |
memcpy(TestCHAR->OSD.Name, "Gumby", 6); |
| 25 |
< |
memcpy(TestCHAR->OSD.Class, "muro_generic", 13); |
| 26 |
< |
TestCHAR->OSD.TeamID = team_syndicate; |
| 23 |
> |
memcpy(TestCHAR.Header.Type, "CHAR", 4); |
| 24 |
> |
memcpy(TestCHAR.OSD.Name, "Gumby", 6); |
| 25 |
> |
memcpy(TestCHAR.OSD.Class, "muro_generic", 13); |
| 26 |
> |
TestCHAR.OSD.TeamID = team_syndicate; |
| 27 |
|
|
| 28 |
< |
ONrGameState_NewCharacter(TestCHAR, NULL, NULL, NULL); |
| 28 |
> |
//ONrGameState_NewCharacter(&TestCHAR, NULL); |
| 29 |
|
} |