Skip to content

Commit

Permalink
Fixes Undeleted SQL Query in Tutorial Code (tgstation#89172)
Browse files Browse the repository at this point in the history
## About The Pull Request

Surprisingly never came up until now, anyways this needs to deleted in
case the `Execute()` fails because undeleted SQL queries are bad (iirc)
## Why It's Good For The Game

No more random errors
## Changelog
Unneeded
  • Loading branch information
san7890 authored Jan 23, 2025
1 parent 6e372f2 commit fec69ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/controllers/subsystem/tutorials.dm
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ SUBSYSTEM_DEF(tutorials)
)

if (!select_tutorials_for_ckey.Execute())
qdel(select_tutorials_for_ckey)
return

while (select_tutorials_for_ckey.NextRow())
Expand Down

0 comments on commit fec69ce

Please sign in to comment.