aboutsummaryrefslogtreecommitdiff
path: root/src/rollback_interface.cpp
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2016-07-07 23:58:52 +0200
committerparamat <mat.gregory@virginmedia.com>2016-07-26 04:15:06 +0100
commit58eb5f39d4e57fd9c7409efade54b5792dfefab3 (patch)
tree186d6164a7179d6815bfe0e92fc75897372655b9 /src/rollback_interface.cpp
parentf833159a68f2ff605224ed7a5ac956e5a0ca42d8 (diff)
downloadminetest-58eb5f39d4e57fd9c7409efade54b5792dfefab3.tar.gz
minetest-58eb5f39d4e57fd9c7409efade54b5792dfefab3.tar.bz2
minetest-58eb5f39d4e57fd9c7409efade54b5792dfefab3.zip
Builtin: Fix check for a player object in core.check_player_privs
core.check_player_privs accepts as first argument a name or player object, but just tested for a string. This caused crashes inside builtin, when being passed any unexpected types. This provides a better (duck-typing like) test, better error reporting.
Diffstat (limited to 'src/rollback_interface.cpp')
0 files changed, 0 insertions, 0 deletions
ef='#n124'>124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225