dbcon IsConnected Runtime Fix (#10676)

* dbcon IsConnected Runtime Fix

* Update code/modules/admin/verbs/warning.dm

Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>

* Update code/modules/mob/abstract/new_player/menu.dm

Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>

* Update code/modules/admin/verbs/warning.dm

Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>

Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>
This commit is contained in:
Geeves
2020-11-28 22:38:21 +02:00
committed by GitHub
parent f54a89b9f8
commit c793dd8a7f
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -311,8 +311,7 @@
var/dcolor = "#ffdddd" //dark colour, severity = 1
var/ecolor = "#e3e3e3" //gray colour, expired = 1
establish_db_connection(dbcon)
if (!dbcon.IsConnected())
if (!establish_db_connection(dbcon))
alert("Connection to the SQL database lost. Aborting. Please alert the database admin!")
return