LAB: Safeguard: Set some variables to null pointer after deleting them
This commit is contained in:
parent
fa222f0ca8
commit
9b6851c1a7
1 changed files with 5 additions and 0 deletions
|
@ -549,6 +549,11 @@ void LabEngine::mainGameLoop() {
|
|||
delete _roomsFound;
|
||||
delete[] _rooms;
|
||||
delete[] _inventory;
|
||||
|
||||
_conditions = nullptr;
|
||||
_roomsFound = nullptr;
|
||||
_rooms = nullptr;
|
||||
_inventory = nullptr;
|
||||
}
|
||||
|
||||
void LabEngine::showLab2Teaser() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue