Could it be (a wild guess) that since you are using ent_for_name (where you aren't allowed to change any parameter of that entity if it's static) it's crashing because you're changing it's emask?
Commenting that line out prevents crashing, but as you said, maybe it's not because of that, but another problem.

EDIT: Nevermind, as you said any change will "fix" it.

Last edited by alibaba; 01/25/16 22:37.

Professional Edition
A8.47.1
--------------------
http://www.yueklet.de