mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Zero out structures when creating houses and rooms
This commit is contained in:
@@ -171,6 +171,8 @@ Boolean CreateNewRoom (short h, short v)
|
||||
char wasState;
|
||||
|
||||
CopyThisRoomToRoom(); // save off current room
|
||||
|
||||
memset(thisRoom, 0, sizeof(roomType));
|
||||
|
||||
PasStringCopy(PSTR("Untitled Room"), thisRoom->name);
|
||||
thisRoom->leftStart = 32; // fill out fields of new room
|
||||
|
Reference in New Issue
Block a user